Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pixering committed Nov 1, 2018
1 parent b35fae9 commit 3b78ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -96,7 +96,7 @@ def extract_contact_details(para):
title = None

# Constituency
constituency_mo = re.search(r'<label [^>]*>Constituency</label>\s+<p>([^<]+)</p>', mp_page, re.DOTALL)
constituency_mo = re.search(r'<label [^>]*>Constituency</label>', mp_page, re.DOTALL)
if not constituency_mo:
logging.error("Could not find constituency for %s", mp_url)
continue
Expand Down

0 comments on commit 3b78ee5

Please sign in to comment.