Skip to content

Commit

Permalink
ignore blank bold para (eg 16th april).
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Apr 23, 2024
1 parent 73b1d9e commit 2a424a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscraper/sp_2024/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def process_raw_html(raw_html: Tag, agenda_item_url: str) -> BeautifulSoup:
for p in soup.find_all('p', class_='or-contribution-box'):
bold = p.find(class_='or-bill-section-bold')
italic = p.find(class_='or-italic')
if bold:
if bold and bold.text.strip():
speech = soup.new_tag("speech")
speech["speaker_name"] = bold.text.strip()
bold.decompose()
Expand Down

0 comments on commit 2a424a6

Please sign in to comment.