Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LeifGreiss committed Dec 1, 2017
1 parent b9e9e76 commit 6d100ed
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)#turnourHTMLintoanlxmlobject
tds = root.cssselect('td')#getallthe<tdtags
for td in tds:
print td.tag
print td.tail
for td in tds:
record = { "td" : td.text_content() } # column name and value try:
scraperwiki.sqlite.save(["td"], record)
Expand Down

0 comments on commit 6d100ed

Please sign in to comment.