Skip to content

Commit

Permalink
Let's see if aiohttp fails as well
Browse files Browse the repository at this point in the history
  • Loading branch information
wfdd committed Jan 31, 2019
1 parent a0d0832 commit af7dddd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
@@ -0,0 +1 @@
aiohttp
12 changes: 12 additions & 0 deletions scraper.py
@@ -1,4 +1,16 @@

import asyncio
from urllib.request import urlopen

from aiohttp import ClientSession


async def test():
async with ClientSession() as session, \
session.get('https://ina.gl/inatsisartut/sammensaetning-af-inatsisartut/'):
pass

asyncio.get_event_loop().run_until_complete(test())


urlopen('https://ina.gl:443/inatsisartut/sammensaetning-af-inatsisartut/')

0 comments on commit af7dddd

Please sign in to comment.