Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice committed Feb 8, 2016
1 parent 9da5486 commit 19562ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -18,7 +18,7 @@
for year in year_list:
html_year = requests.get(year).text
root_year = lxml.html.fromstring(html_year)
category_url = root_year.cssselect("dl div[1] a").get('href')
category_url = root_year.xpath("//dl/div[1]/a/@href")
print category_url
break

Expand Down

0 comments on commit 19562ab

Please sign in to comment.