Giter VIP home page Giter VIP logo

python-legistar-scraper's Introduction

Python Legistar Scraper

Build Status

Scrapes municipal data from Legistar sites.

Contributing

Local installation

Install this package and its dependencies. (We recommend working in a virtual environment, e.g., venv or virtualenvwrapper).

pip install -e .

Install the development requirements.

pip install -r requirements.txt

Testing

To run the tests:

pytest -sv

A note on test fixtures

The tests rely on HTML from assorted Legistar properties. As it would be undesirable to hit the live server each time the tests are run, particularly during local development, fixtures are provided in the tests/fixtures/ directory.

A convenience script is provided for refreshing the fixtures, i.e., re-scraping Legistar and storing the resultant HTML.

The Legistar site is fairly stable, however if your patch addresses a change in page structure, update the fixtures as follows:

python tests/refresh_fixtures.py

Be sure to commit the refreshed fixture and submit it with your patch.

python-legistar-scraper's People

Contributors

twneale avatar fgregg avatar hancush avatar jamesturk avatar reginafcompton avatar paultag avatar rshorey avatar pjsier avatar

Watchers

Éamon Johnson avatar James Cloos avatar Will Skora avatar Paul Koepke avatar  avatar

Forkers

skorasaurus

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.