I want to parse a lot of links using iohttp, but it doesn't work in real time, parse each one in turn. How do I make it so that I parse each one continuously?
import aiohttp
import asyncio
list = ['value1', 'value2', 'value3', ..... 'value6000']
async def main():
async with aiohttp.ClientSession() as session:
while True:
for i in list:
async with session.get(f"https://example.com/{i}") as response:
print(response.json())
loop = asyncio.get_event_loop()
loop.run_until_complete(main())