Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
wfdd committed Aug 4, 2016
1 parent 119eafa commit 3c67144
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scraper.py
Expand Up @@ -138,7 +138,13 @@ async def gather(iterable):


def main(loop):

import subprocess
try:
subprocess.run('curl -A "Python/3.5 aiohttp/0.22.0" -L http://www.data.gov.cy/', shell=True, check=True)
except subprocess.CalledProcessError as e:
print(e.stderr)
return

with StderrLogger(), \
aiohttp.ClientSession(loop=loop) as session, \
sqlite3.connect('data.sqlite') as conn:
Expand Down

0 comments on commit 3c67144

Please sign in to comment.