Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGL committed Jan 27, 2018
1 parent 31dc32b commit 64de713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -13,7 +13,7 @@
root = lxml.html.fromstring(html)
sections = root.cssselect("tr")
for section in sections:
print "This section is: {}".format(section.text)
print "This section is: {}".format(section.text_content())
# names = root.cssselect("td div a")
# if section = root.cssselect("td div a")
# print section.text.encode('ascii', 'ignore')
Expand Down

0 comments on commit 64de713

Please sign in to comment.