Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbradshaw committed Jan 18, 2017
1 parent b7dbd33 commit 71a86d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scraper.py
Expand Up @@ -60,11 +60,14 @@ def scrapepdf(url):
if mention:
#we add .encode to avoid any unicode-related errors
print line.text.encode('ascii', 'ignore')
record['url'] = url
record['text'] = line.text.encode('ascii', 'ignore')
record['reportline'] = url+str(linenumber)
record['url'] = url
print 'ALL DATA: ', record
scraperwiki.sqlite.save(['reportline'],record)
print 'ALL DATA: ', record
scraperwiki.sqlite.save(['reportline'],record)




scrapepdf(url)
#

0 comments on commit 71a86d0

Please sign in to comment.