Skip to content

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

License

Notifications You must be signed in to change notification settings

phoneyourrep/open_states_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages