04 Aug Using aiohttp, asyncio and regular expressions, get all URLs
Using aiohttp, asyncio and regular expressions, get all URLs by accessing this page and following the links.
- The first page leads you to a random initial page.
- A page has links to several pages.
- You should not access a page more than once.
- Check the nearest prime number of the page that you are accessing while waiting for the response.
- There are total 50 pages; you may get less than 50 URLs depending on the initial page that you get.
- Store all links and the nearest prime number associated with each link that you have in a text file.
