pgh-public-meetings / city-scrapers-pitt

Pittsburgh City Scrapers: sourcing public meetings in Pittsburgh
https://pgh-public-meetings.github.io/events/
MIT License
19 stars 66 forks source link

Pgh city council spider #35

Closed jtotoole closed 5 years ago

jtotoole commented 5 years ago

Closes https://github.com/bonfirefan/city-scrapers-pitt/issues/3, which looks like it hasn't been touched for a while. I had occasion to poke around on Legistar for unrelated reasons, so figured I'd take a stab at this 🙂

bonfirefan commented 5 years ago

Thanks for putting this together, James! It looks good to me but I'll be doing another check later on. Thanks for flagging the timezone issue with city-scrapers-core.

jtotoole commented 5 years ago

Thank you! in addition to the tz issue with datetime objects in city-scrapers-core, it looks to me like there's a problem with the genspider command: It automatically sets the timezone to America/Chicago, and doesn't accept arguments to adjust that. That will likely be a gotcha for people doing Pittsburgh spiders. I can probably take a stab at that fix in the future unless someone wants to pick it up now.

danwarren commented 5 years ago

I was also distracted by the core tz issue, it's reasonably trivial to edit the template on a local virtualenv, but not very shareable. I only spent about 30 min in the core repo, but did not find a config override that could solve it without some non-trivial coding.

jtotoole commented 5 years ago

Made a PR for the _get_status issue here fyi: https://github.com/City-Bureau/city-scrapers-core/pull/6

jtotoole commented 5 years ago

Based on the convo in the PR I linked to above, sounds like there's actually no need to make the datetime timezone-aware; adjusted this PR accordingly