Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danwainwright committed Jun 14, 2017
1 parent 15bf0a6 commit b705021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -2,7 +2,7 @@
html = scraperwiki.scrape('http://inmo.ie/6022')
import lxml.html
root = lxml.html.fromstring(html) # turn our HTML into an lxml object
td = root.cssselect('td') # get all the <tr> tags
tds = root.cssselect('td') # get all the <tr> tags
for td in tds:
record = td.text_content() # just the text inside the HTML tag
for td in tds:
Expand Down

0 comments on commit b705021

Please sign in to comment.