Skip to content

Instantly share code, notes, and snippets.

View fmr's full-sized avatar

Francis Reyes fmr

  • Melbourne, Australia
View GitHub Profile
@fmr
fmr / scrapper.py
Last active August 29, 2015 14:13 — forked from madjar/scrapper.py
import asyncio
import aiohttp
import bs4
import tqdm
@asyncio.coroutine
def get(*args, **kwargs):
response = yield from aiohttp.request('GET', *args, **kwargs)
return (yield from response.read_and_close(decode=True))