Skip to content

Commit

Permalink
fixup! Add scraper for new Scottish Parliament site
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Apr 22, 2024
1 parent 2940dbf commit f3ea32d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pyscraper/sp_2024/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,7 @@ def process_raw_html(html: str, agenda_item_url: str):
vote_div = soup.new_tag("msplist")
vote_div["vote"] = vote_str
# get all the speakers in the next sibling
members = (
str(vote_tag.find_next_sibling("p"))
.replace("<p>", "")
.replace("</p>", "")
.split("<br/>")
)
members = [x.strip() for x in members]
members = vote_tag.find_next_sibling("p").stripped_strings

for m in members:
mspname = soup.new_tag("mspname")
Expand Down

0 comments on commit f3ea32d

Please sign in to comment.