Hi. First, i won’t recommend your app to depend on an external web. It wouldn’t be scalable, and it wouldn’t support that many users since each one’s client would be requesting this web. If you decide to move on in this strategy, then what you could do is research this web’s source code and understand how is this generating and displaying the lottery number in order to take an appropiate action.
On the other hand, you could use nmap to scan directories and files that are being used.
To sum up, my recommendation is: don’t depend on web scrapping for a normal app’s operation (you could use it if it’s a private app for personal use, one-time operations, learning/didactical purposes, etc). Make sure there isn’t already an API that does what you are looking for, before everything. If you decide to do it this way anyways, learn as much as you can about how your target web is doing things. Good luck.