Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zegor committed Jul 13, 2018
1 parent 61dc8eb commit ea0213b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -10,7 +10,7 @@
# Find something on the page using css selectors
root = lxml.html.fromstring(html)
elements = root.find_class("colhead")
column1 = elements.count()
column1 = elements.copy()

# Write out to the sqlite database using scraperwiki library
scraperwiki.sqlite.save(unique_keys=["column1"], data={"column1": column1}, table_name="data")
Expand Down

0 comments on commit ea0213b

Please sign in to comment.