Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bzhangjma committed Oct 30, 2024
1 parent 2c417f8 commit 5fe2b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ca_on_markham/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def scrape(self):
p.add_link(link)

yield p

def get_contact(self, url):
page = self.lxmlize(url)

Expand Down Expand Up @@ -96,7 +96,7 @@ def scrape_mayor(self, url):
contact_node = page.xpath('.//div[@class="dept-contact-info--block"]')[0]
email = self.get_email(contact_node)
phone = self.get_phone(contact_node)

p = Person(primary_org="legislature", name=name, district="Markham", role="Mayor")
p.image = page.xpath('.//div[@class="align-right media--image"]/div/img/@src')[0]
p.add_contact("email", email)
Expand Down

0 comments on commit 5fe2b21

Please sign in to comment.