Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzalot committed Aug 12, 2016
1 parent 85410fa commit 2c988e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def parse(self, response):
headers = response.xpath("//*[@id='subnavigation']/form/div")
print len(headers)
for header in headers:
links = header.xpath("//*/option")
links = header.xpath("//select/option")
ident = header.xpath("//@id").extract()
print ident
for link in links:
value = link.xpath("//@value").extract()
if value:
Expand Down

0 comments on commit 2c988e4

Please sign in to comment.