Skip to content

Commit

Permalink
Fix scraper for plenary session locations
Browse files Browse the repository at this point in the history
Fixes #983
  • Loading branch information
tillprochaska committed Aug 6, 2024
1 parent 6dcf149 commit 0ff7aeb
Show file tree
Hide file tree
Showing 3 changed files with 3,211 additions and 3 deletions.
4 changes: 1 addition & 3 deletions backend/howtheyvote/scrapers/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ def _url(self) -> str:
return f"{self.BASE_URL}/MTG-PL-{self.start_date.isoformat()}"

def _extract_data(self, doc: BeautifulSoup) -> Fragment | None:
locality = doc.select_one(
"rdf|RDF > eli-dl|Activity > eli-dl|consists_of > eli-dl|Activity > vcard|hasLocality" # noqa: E501
)
locality = doc.select_one("rdf|RDF > eli-dl|Activity > vcard|hasLocality")

if not locality:
return None
Expand Down
Loading

0 comments on commit 0ff7aeb

Please sign in to comment.