From 5fe2b2175cf5aa46b0f50d580d80c0ac69dc51f7 Mon Sep 17 00:00:00 2001 From: Brighten Zhang Date: Wed, 30 Oct 2024 15:07:10 -0400 Subject: [PATCH] cleanup --- ca_on_markham/people.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ca_on_markham/people.py b/ca_on_markham/people.py index 5f8ae577..2def610d 100644 --- a/ca_on_markham/people.py +++ b/ca_on_markham/people.py @@ -67,7 +67,7 @@ def scrape(self): p.add_link(link) yield p - + def get_contact(self, url): page = self.lxmlize(url) @@ -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)