Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 704 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 704 Bytes

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.