Skip to content

About

Scrape data on all U.S. State Legislators from the OpenStates API

Resources

Stars

1 star

Watchers

4 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

OpenStatesScraper

Bulk downloads information on all U.S. state legislators from the OpenStates GraphQL API.

Uses a pool of workers to process API requests concurrently.

Installation

Make sure you have Elixir ~> 1.5 and Erlang/OTP installed. Clone this repository and configure your OpenStates API key as an environment variable with the name "OPENSTATES_API_KEY". Alternatively you can configure the key in your config.exs file:

config :open_states, api_key: "xxxxxxxxxxxxxxxxx"

Then run:

mix deps.get && mix test
MIX_ENV=prod mix run --no-halt

The legislator data is written in JSON format in the ./data/ directory.

About

Scrape data on all U.S. State Legislators from the OpenStates API

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages