Skip to content

Commit

Permalink
[c] Update spider ChiCitycouncilSpider and fix failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lamle-ea committed Sep 28, 2023
1 parent e7e49b4 commit 020d936
Show file tree
Hide file tree
Showing 3 changed files with 3,752 additions and 6,309 deletions.
8 changes: 1 addition & 7 deletions city_scrapers/spiders/chi_citycouncil.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import requests
from city_scrapers_core.constants import NOT_CLASSIFIED
from city_scrapers_core.items import Meeting
from city_scrapers_core.spiders import CityScrapersSpider
Expand All @@ -9,14 +8,9 @@ class ChiCitycouncilSpider(CityScrapersSpider):
name = "chi_citycouncil"
agency = "Chicago City Council"
timezone = "America/Chicago"
start_urls = ["https://chicityclerkelms.chicago.gov/Meetings/"]
start_urls = ["https://api.chicityclerkelms.chicago.gov/meeting"]

def parse(self, response):
# The API endpoint
url = "https://api.chicityclerkelms.chicago.gov/meeting" # noqa

# A GET request to the API
response = requests.get(url)
response_json = response.json()

for item in response_json["data"]:
Expand Down
Loading

0 comments on commit 020d936

Please sign in to comment.