Giter Site home page Giter Site logo

djwhatley / openstates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openstates/openstates-scrapers

0.0 2.0 0.0 21.3 MB

source for Open States' scrapers

Home Page: https://openstates.org

License: GNU General Public License v3.0

Python 94.34% R 0.03% Makefile 0.02% HTML 0.93% CSS 2.09% JavaScript 2.34% Shell 0.25%

openstates's Introduction

The Open States Project collects and makes available data about state legislative activities, including bill summaries, votes, sponsorships and state legislator information. This data is gathered directly from the states and made available in a common format for interested developers, through a JSON API and data dumps.

Links

Getting Started

We use Docker to provide a reproducible development environment. Make sure you have Docker installed. Inside of the directory you cloned this project into:

docker-compose run openstates <abbreviated state code>  # Scrapes the state indicated by the code e.g. "ny"

This project runs on top of billy, a scraping framework for government data. Our Docker container runs the billy-update command (billy-update docs) with whatever arguments you put at the end of docker run. For example, you can limit the scrape to Tennessee's (tn) state senators using:

docker-compose run openstates tn --upper --legislators

Check out the writing scrapers guide to understand how the scrapers work & how to contribute.

Testing

To run all tests:

docker-compose run --entrypoint=nosetests openstates /srv/openstates-web/openstates

Note that Illinois (il) is the only state with tests right now.

openstates's People

Contributors

jamesturk avatar mikejs avatar twneale avatar mileswwatkins avatar paultag avatar rshorey avatar showerst avatar brandonlewis avatar jmcarp avatar schneidy avatar divergentdave avatar mattgrayson avatar tamilyn avatar linzjax avatar markolson avatar hiteshgarg14 avatar cweber avatar cliftonmcintosh avatar joegermuska avatar giantryansaul avatar jballanc avatar mshenfield avatar binaryechoes avatar shivansh-bajaj avatar rmanocha avatar dsummersl avatar gabriel4649 avatar brymut avatar poliquin avatar onyxfish avatar

Watchers

Daniel Whatley avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.