Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
acvwebb committed Jan 25, 2018
1 parent 5344d1e commit 46afb6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -5,11 +5,11 @@
import lxml.html
#
# # Read in a page
html = scraperwiki.scrape("https://www.facebook.com/amelia.c.webb/friends?pnref=lhc")
html = scraperwiki.scrape("https://uk.soccerway.com/teams/england/chelsea-football-club/661/")
#
# # Find something on the page using css selectors
root = lxml.html.fromstring(html)
names = root.cssselect("ul/li[1]/div/div/div[2]/div/div[2]/div")
names = root.cssselect("td div a")
for name in names:
print name.text
print name.attrib['href']
Expand Down

0 comments on commit 46afb6b

Please sign in to comment.