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 14, 2017
1 parent 82e9dd8 commit 080e395
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions scraper.py
Expand Up @@ -106,17 +106,17 @@ def search():

if re.search( r'More information about this councillor', mgUserBodySectionName, re.I):
filler = len(mgUserBodySection.xpath('node()')
elif re.search( r'terms of office', mgUserBodySectionName, re.I):
filler = len(mgUserBodySection.xpath('node()')
elif re.search( r'committee appointments', mgUserBodySectionName, re.I):
filler = len(mgUserBodySection.xpath('node()')
elif re.search( r'Surgery details', mgUserBodySectionName, re.I):
surgery = "".join(mgUserBodySection.xpath('text()')).strip()
print name, "Surgery", mgUserBodySectionName
elif re.search( r'Appointments to outside bodies', mgUserBodySectionName, re.I):
filler = len(mgUserBodySection.xpath('node()')
elif re.search( r'Additional Information', mgUserBodySectionName, re.I):
elif (re.search( r'terms of office', mgUserBodySectionName, re.I)):
filler = len(mgUserBodySection.xpath('node()')
# elif re.search( r'committee appointments', mgUserBodySectionName, re.I):
# filler = len(mgUserBodySection.xpath('node()')
# elif re.search( r'Surgery details', mgUserBodySectionName, re.I):
# surgery = "".join(mgUserBodySection.xpath('text()')).strip()
# print name, "Surgery", mgUserBodySectionName
# elif re.search( r'Appointments to outside bodies', mgUserBodySectionName, re.I):
# filler = len(mgUserBodySection.xpath('node()')
# elif re.search( r'Additional Information', mgUserBodySectionName, re.I):
# filler = len(mgUserBodySection.xpath('node()')
else:
filler = len(mgUserBodySection.xpath('node()')

Expand Down

0 comments on commit 080e395

Please sign in to comment.