Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LeifGreiss committed Dec 1, 2017
1 parent c5b14de commit 34d52a9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions scraper.py
@@ -1,7 +1,11 @@
import scraperwiki
#html = scraperwiki.scrape('http://www.maidencreek.net/')
#print html
x = ['Carol', 'Rui', 'Brian', 'Fatimah']
print x[1]
food = {"ham" : "yes", "egg" : "yes", "spam" : "no" }
print food["ham"]
html = scraperwiki.scrape('http://inmo.ie/6022')
print "Click on the ...more link to see the whole page"
print html

#import lxml.html
#root = lxml.html.fromstring(html) # turn our HTML into an lxml object
#tds = root.cssselect('td') # get all the <td> tags
#for td in tds:
#print lxml.html.tostring(td) # the full HTML tag
#print td.text # just the text inside the HTML tag

0 comments on commit 34d52a9

Please sign in to comment.