Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AF91 committed Jan 25, 2018
1 parent e7f6df7 commit 649f2ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.py
Expand Up @@ -18,10 +18,10 @@
# print name.attrib['href']
# store the link in the variable 'record' under the key 'link'
record['link'] = name.attrib['href']
# record['name'] = name.text.encode('ascii', 'ignore')
record['name'] = name.text.encode('ascii', 'ignore')
print record
scraperwiki.sqlite.save(unique_keys=['link'], data=record)
scraperwiki.sqlite.save(unique_keys=['name'], data=record)
scraperwiki.sqlite.save(unique_keys=['link','name'], data=record)
# scraperwiki.sqlite.save(unique_keys=['name'], data=record)


#
Expand Down

0 comments on commit 649f2ea

Please sign in to comment.