Skip to content

Commit

Permalink
Fix scraper for plenary session locations (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
tillprochaska authored Aug 6, 2024
2 parents f6dccdc + 1510885 commit 73454a5
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 73454a5

Please sign in to comment.