Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
walinchus committed Apr 26, 2017
1 parent 45b78f9 commit 6ba0f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -4,7 +4,7 @@
root = lxml.html.fromstring(html) # turn our HTML into an lxml object
tds = root.cssselect('td') # get all the <td tags
for td in tds:
print td.text_content() # just the text inside the HTML tag
print td.text_content() # just the text inside the HTML tag
for td in tds:
record = { "td" : td.text_content() } # column name and value
scraperwiki.sqlite.save(["td"], record) # save the records one by one
Expand Down

0 comments on commit 6ba0f49

Please sign in to comment.