Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hicham20201441 committed Aug 27, 2020
1 parent 265aa29 commit 4eafa49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -10,7 +10,7 @@
# # Find something on the page using css selectors
root = lxml.html.fromstring(html)
for e in root.cssselect("a"):
print(e["href"])
print(e.get("href"))
#scraperwiki.sqlite.save(unique_keys=[e.get("href")], data={"link": e.get("href")})

#root.cssselect("div[class='blog-col']")
Expand Down

0 comments on commit 4eafa49

Please sign in to comment.