Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruBratu committed Feb 26, 2019
1 parent 78c0f4b commit bfdd422
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scraper.py
@@ -1,3 +1,4 @@

# This is a template for a Python scraper on morph.io (https://morph.io)
# including some code snippets below that you should find helpful

Expand All @@ -12,6 +13,8 @@
root = lxml.html.fromstring(html)
root.cssselect("li p a")
#
matchedlinks=root.cssselect("li p a")
print(matchedlinks)
# # 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 bfdd422

Please sign in to comment.