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 26, 2018
1 parent 8d3a4f7 commit c113615
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scraper.py
Expand Up @@ -13,6 +13,8 @@
root = lxml.html.fromstring(html)
sections = root.cssselect("tr")
for section in sections:
names = root.cssselect("td div a")
if section = root.cssselect("td div a")
print section.text.encode('ascii', 'ignore')
print section.attrib['href']

Expand Down

0 comments on commit c113615

Please sign in to comment.