I want to create an app that randomly access pages from another site. This site has more than 40,000 pages and does not have an api.
How can I collect the url of all these 40,000 pages? Copy and paste will be eternal.
All of these pages follow the same structure, similar to site.com/directory/1.html, site.com/directory/2.html, etc