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

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

Open
showerst opened this issue Mar 11, 2024 · 0 comments
Open

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

showerst opened this issue Mar 11, 2024 · 0 comments

Comments

@showerst
Copy link
Contributor

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

  • Allow for bills with no bill number. Yuck, maybe we don't relax this and just put in dummies.

State Model changes

  • Make fips optional
  • Make number of seats on the Chamber object optional. Maybe just make chamber optional entirely

Core Constant Overrides:

Here's where they currently live.

  • Bill Type
  • Bill Action Type
  • Vote Type
  • Vote Result

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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant