sfbrigade / data-covid19-sfbayarea

Manual and automated processes of sourcing data for the stop-covid19-sfbayarea project
MIT License
8 stars 10 forks source link

San Mateo scraper broken #186

Closed Mr0grog closed 3 years ago

Mr0grog commented 3 years ago

The San Mateo scraper is broken. It appears the ID of at least one of the county's data sets has changed. Here's the current error:


San Mateo county failed: CKAN API Error: Not found: Resource "926fd08f-cc91-4828-af38-bd45de97f8c3" was not found. (status: 404)
Traceback (most recent call last):
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/scraper_data.py", line 30, in main
    out[county] = data_scrapers.scrapers[county].get_county()
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/covid19_sfbayarea/data/san_mateo/__init__.py", line 27, in get_county
    out.update(fetch_data())
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/covid19_sfbayarea/data/san_mateo/__init__.py", line 46, in fetch_data
    'deaths': get_timeseries_deaths(),
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/covid19_sfbayarea/data/san_mateo/__init__.py", line 80, in get_timeseries_deaths
    return [
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/covid19_sfbayarea/data/san_mateo/__init__.py", line 80, in <listcomp>
    return [
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/covid19_sfbayarea/data/ckan.py", line 50, in data
    data = self.request(next_url, params=next_params)
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/covid19_sfbayarea/data/ckan.py", line 89, in request
    raise BadRequest(f'CKAN API Error: {message}', response=response)
covid19_sfbayarea.data.errors.BadRequest: CKAN API Error: Not found: Resource "926fd08f-cc91-4828-af38-bd45de97f8c3" was not found. (status: 404)

See the error in Slack.