Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLundSE26 committed Dec 13, 2017
1 parent acd5c20 commit 49637fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -93,7 +93,7 @@ def search():
mgUserBodySectionTitles = mgUserBody.xpath("//h2[@class='mgSectionTitle']")

for mgUserBodySectionTitle in mgUserBodySectionTitles:
mgUserBodySection = mgUserBodySectionTitle.xpath('./following-sibling')
mgUserBodySection = mgUserBodySectionTitle.xpath('./following-sibling')[0]
mgUserBodySectionName = "".join(mgUserBodySectionTitle.xpath('text()')).strip()
if re.search( r'More information about this councillor', mgUserBodySectionName, re.I):
filler = "".join(mgUserBodySection.xpath('text()')).strip()
Expand Down

0 comments on commit 49637fb

Please sign in to comment.