After experiencing similar issues with the official website during the 2023 New Year’s Eve or other important events following the National Lottery draw, I created a Node.js application using Puppeteer to crawl the results from the official website and store them in a MongoDB.
Later, using Next.js, I retrieved the draw information from the MongoDB database and generated static pages for the results using the ISR (Incremental Static Regeneration) method. This way, users could instantly view the results without utilizing server resources when querying the draw outcome.
Since the data collection part of the application was manually triggered, I stopped updating it. In the future, I may set up a Node.js – Puppeteer application on Proxmox to automate data entry.


