Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfiskar committed Jan 21, 2016
1 parent f20b71d commit 0d0044f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.py
Expand Up @@ -12,9 +12,9 @@
root = lxml.html.fromstring(html)
#tds = root.cssselect('td')
tds = root.cssselect('td')
record = {"cell" : td.text}
print record
scraperwiki.sqlite.save(["cell"], record)
Indexno = indexno +1
record = {"td" : td.text, "index" : indexno}
scraperwiki.sqlite.save(["index"], record)
#change 'td' to a different selector to scrape something else on the page
#lxml.html - Parsing HTML (breaking it up and getting to a bit of it. lxml.html.fromstring
# # Write out to the sqlite database using scraperwiki library
Expand Down

0 comments on commit 0d0044f

Please sign in to comment.