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 c5a6259 commit 768a22b
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
trs = root.cssselect('tr')#getallthe<tdtags
for tr in trs:
print tr.text_content
print tr.text_content()
for tr in trs:
record = { "tr" : tr.text_content() } # column name and value try:
scraperwiki.sqlite.save(["tr"], record)
Expand Down

0 comments on commit 768a22b

Please sign in to comment.