import asyncio
import aiohttp


async def download_page(context, queue):
    """Downloads a page and saves the body into queue"""
    url, selector = context
    await asyncio.sleep(0)
    async with aiohttp.ClientSession() as session:
        async with session.get(url) as resp:
            body = await resp.text()
            queue.put_nowait((body, selector))
            return body