Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emilylowes committed Feb 26, 2019
1 parent 720999f commit 4cf9cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -9,10 +9,10 @@
#
# # Find something on the page using css selectors
root = lxml.html.fromstring(html)
root.cssselect("li")
root.cssselect("a")
#cssselect is a selector, root stores the html so we can explore the data, cssselect will grab anything under an "a" tag, which is
#then stored in new variable links.
links = root.cssselect("li")
links = root.cssselect("a")


#
Expand Down

0 comments on commit 4cf9cba

Please sign in to comment.