Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmodiddley committed Jan 21, 2016
1 parent b90df55 commit b777f94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scraper.py
Expand Up @@ -12,7 +12,10 @@
# the line below is us using cssselect on variable root to grab the table cell i.e. 'td' and put in variable 'tds'
tds = root.cssselect('td')
#
#
#Just as the function fromstring changes it to xml so the lxml library can read it we now need to change it back to something that we cna read
for td in tds:
print lxml.html.tostring(td)
print td.text
#
#
#
Expand Down

0 comments on commit b777f94

Please sign in to comment.