Skip to content

Commit

Permalink
Update scraper after markup of source website changed
Browse files Browse the repository at this point in the history
The markup of the OEIL has changed and the previous selector to extract the procedure title didn’t work any more. Also updated the tests fixture with the current version of the web page.
  • Loading branch information
tillprochaska committed Nov 14, 2024
1 parent 377c566 commit 2bcafab
Show file tree
Hide file tree
Showing 2 changed files with 2,343 additions and 3,290 deletions.
2 changes: 1 addition & 1 deletion backend/howtheyvote/scrapers/votes.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def _extract_data(self, doc: BeautifulSoup) -> Fragment:
)

def _title(self, doc: BeautifulSoup) -> str | None:
title = doc.select_one("#procedure-file-header .ep-layout_underline")
title = doc.select_one("#website-body h2.erpl_title-h2")

if not title:
return None
Expand Down
Loading

0 comments on commit 2bcafab

Please sign in to comment.