Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5b14de
commit 34d52a9
Showing
1 changed file
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |