Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth17 committed Aug 6, 2019
1 parent 330f720 commit 435a599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -12,10 +12,10 @@
root.cssselect("div[class='NORMAL symbol']")
#
# # Write out to the sqlite database using scraperwiki library
scraperwiki.sqlite.save(unique_keys=['name'], data={"name": "susan", "occupation": "software developer"})
scraperwiki.sqlite.save(unique_keys=['class'], data={"name": "susan", })
#
# # An arbitrary query against the database
scraperwiki.sql.select("* from data where 'name'='peter'")
scraperwiki.sql.select("* from data where 'name'='NORMAL symbol'")

# You don't have to do things with the ScraperWiki and lxml libraries.
# You can use whatever libraries you want: https://morph.io/documentation/python
Expand Down

0 comments on commit 435a599

Please sign in to comment.