Skip to content

Commit

Permalink
ca_on_kawartha_lakes: Ignore names including content like "RESIGNED A…
Browse files Browse the repository at this point in the history
…S OF NOV. 1, 2024"
  • Loading branch information
jpmckinney committed Nov 11, 2024
1 parent 1e96ba1 commit d6249fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ca_on_kawartha_lakes/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def scrape(self):
name = councillor.text_content().replace("Mayor", "").strip()
role = "Mayor"

if "RESIGNED" in name:
continue

info_node = councillor.xpath("./following-sibling::*")[0]
email = self.get_email(info_node)
phone = self.get_phone(info_node)
Expand Down

0 comments on commit d6249fc

Please sign in to comment.