Skip to content

Instantly share code, notes, and snippets.

@Integralist
Integralist / Multiple asynchronous HTTP GET requests with Python's aiohttp and asyncio.py
Created November 1, 2016 15:37
Multiple asynchronous HTTP GET requests with Python's aiohttp and asyncio
import time
import datetime
import asyncio
import aiohttp
domain = 'http://integralist.co.uk'
a = '{}/foo?run={}'.format(domain, time.time())
b = '{}/bar?run={}'.format(domain, time.time())
async def get(url):