Handle dial-in for chi_labor_retirement_fund
+import re
from datetime import datetime
from city_scrapers_core.constants import BOARD
@@ -23,12 +24,16 @@ class ChiLaborRetirementFundSpider(CityScrapersSpider):
needs.
"""
description = " ".join(response.css(".mainRail .block p:nth-child(1) *::text").extract())
- if "321 N" not in description:
+ dial_in_desc = re.sub(
+ r"\s+", " ",
+ " ".join(response.css(".mainRail .block p:nth-child(1) strong *::text").extract())
+ ).strip()
+ if "321 N" not in description and "Dial" not in dial_in_desc:
raise ValueError("Meeting location has changed")
for item in response.css(".days"):
meeting = Meeting(
title=self._parse_title(item),
- description="",
+ description=re.sub(r"\s+(?=,)", "", dial_in_desc),
classification=BOARD,
start=self._parse_start(item),
end=None,
