Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scraper breaking on Alameda County Water District #176

Open
zstumgoren opened this issue Feb 28, 2024 · 0 comments
Open

Scraper breaking on Alameda County Water District #176

zstumgoren opened this issue Feb 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zstumgoren
Copy link
Member

zstumgoren commented Feb 28, 2024

Alameda Water County Water District scrape is failing:

https://www.acwd.org/AgendaCenter

Removing the agency from our GDoc scraping list until we can debug.

Stacktrace from Prefect:

ERROR ON SCRAPER TASK for https://www.acwd.org/AgendaCenter. Here's the stack trace:
Traceback (most recent call last):
  File "/etl/utils/scrape.py", line 59, in scrape_agency
    assets_meta = site.scrape(
                  ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/civic_scraper/platforms/civic_plus/site.py", line 68, in scrape
    file_metadata = self.parser_kls(raw_html).parse()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/civic_scraper/platforms/civic_plus/parser.py", line 20, in parse
    metadata = self._extract_asset_data(divs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/civic_scraper/platforms/civic_plus/parser.py", line 42, in _extract_asset_data
    cmte_name = self._committee_name(div)
                ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/civic_scraper/platforms/civic_plus/parser.py", line 71, in _committee_name
    div.h2.span.extract()
    ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'span'
Traceback (most recent call last):
  File "/etl/utils/scrape.py", line 59, in scrape_agency
    assets_meta = site.scrape(
                  ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/civic_scraper/platforms/civic_plus/site.py", line 68, in scrape
    file_metadata = self.parser_kls(raw_html).parse()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/civic_scraper/platforms/civic_plus/parser.py", line 20, in parse
    metadata = self._extract_asset_data(divs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/civic_scraper/platforms/civic_plus/parser.py", line 42, in _extract_asset_data
    cmte_name = self._committee_name(div)
                ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/civic_scraper/platforms/civic_plus/parser.py", line 71, in _committee_name
    div.h2.span.extract()
    ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'span'
@zstumgoren zstumgoren added the bug Something isn't working label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant