State-Specific Scraper Info

California MySQL

California is a unique state that takes a couple of extra steps to get working locally.

California provides MySQL dumps of their data, and in order to use those we start up a local MySQL instance and read from that.

To download the data for the current session:

docker-compose run --rm ca-download

(You can append –year YYYY to instead select data for a given year.)

This will start a local MySQL image as well, that image will need to stay up for the next step, which is running a scrape like normal:

docker-compose run --rm scrape ca bills --fast

State API Keys (NY & IN)

Unfortunately, some states find it necessary to require API Keys (or other credentials) to access their best data.

Despite the difficulties this creates for contributors, in the interest of ensuring we have the best possible data we’ve made the decision that we will use this data where possible.

Our policy:

  • We will maintain (when possible) two copies of credentials, one for development and one for production. (Thus minimizing the chance that a mistake made w/ a development key will jeopardize our ability to scrape.)
  • We encourage developers to get an API key of their own, but if necessary we can share our testing key in limited circumstances.

Currently only a few states require API keys: