Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aloviza committed Feb 19, 2019
1 parent 43bbb40 commit b299e95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scraper.py
Expand Up @@ -14,8 +14,9 @@

# # Find something on the page using css selectors
root = lxml.html.fromstring(html)
print(root.cssselect("div[align='left']"))
#
print(root.cssselect("a"))
# This line always finds a list, even if there's nothing in the list.

# # Write out to the sqlite database using scraperwiki library
# scraperwiki.sqlite.save(unique_keys=['name'], data={"name": "susan", "occupation": "software developer"})
#
Expand Down

0 comments on commit b299e95

Please sign in to comment.