openstates / enhancement-proposals

Open States Enhancement Proposals
1 stars 3 forks source link

Allow for scraping jurisdictions that aren't in openstates core #41

Open showerst opened 5 months ago

showerst commented 5 months ago

I'm planning on turning this into a full PEP later, this is just for taking notes as we write some non-state scrapers.

Things we need to do to allow for scraping any jurisdiction (municipality, county, country, foreign state, etc).

System Wide

State Model changes

Core Constant Overrides:

Here's where they currently live.

I'm thinking we could let a scraper overwrite these vars but to keep the whole list somewhat organized maybe only as a class variable of the scraper or something? Or call a specific method to append them.

Spitballing:

self.add_bill_action_type("royal-assent", "Royal Assent")
self.add_bill_action_type("mayoral-approval", "Mayoral Approval")