Skip to content

Instantly share code, notes, and snippets.

View clearnote01's full-sized avatar

Utkarsh Raj clearnote01

  • Hamirpur, Himachal Pradesh, India
View GitHub Profile
@clearnote01
clearnote01 / scrapper.py
Created March 9, 2016 09:54 — forked from madjar/scrapper.py
A example of scrapper using asyncio and aiohttp
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))