Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
beren744 committed Jan 25, 2018
1 parent 66421c1 commit 5b6081f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scraper.py
Expand Up @@ -2,7 +2,7 @@
# including some code snippets below that you should find helpful
# import the scraperwiki library to store data
import scraperwiki
# import lxml.html
import lxml.html
print "hello world"
#here i create a variable
myname = "leo"
Expand All @@ -13,7 +13,8 @@
html = scraperwiki.scrape("http://foo.com")
print html
# # Find something on the page using css selectors
# ROOT BELOW TAKE THE CODE FROM THE PRINT HTML AND CONVERT
# ROOT BELOW TAKE THE CODE FROM THE PRINT HTML AND CONVERT PROBLEM IS WE DID NOT IMPORT LXML LIBRARY SO WE NEED TO UNCOMMENT THE LINE IMPORT
LXML
root = lxml.html.fromstring(html)
# root.cssselect("div[align='left']")
#
Expand Down

0 comments on commit 5b6081f

Please sign in to comment.