Skip to content

Instantly share code, notes, and snippets.

@amirouche
Created April 28, 2015 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amirouche/80ff003360f35721b781 to your computer and use it in GitHub Desktop.
Save amirouche/80ff003360f35721b781 to your computer and use it in GitHub Desktop.
#hypermove #python #asyncio
from aiohttp import request
from lxml.html import parse
def downfile():
r = yield from request('get', 'http://python.org')
raw = yield from r.text()
return raw
if __name__ == '__main__':
asyncio.get_event_loop().run_until_complete(run())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment