GithubHelp home page GithubHelp logo

isabella232 / billtracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akkana/billtracker

0.0 0.0 0.0 770 KB

Track bills in the NM legislature (could be extended to other venues)

License: GNU General Public License v2.0

Python 83.93% HTML 12.52% JavaScript 1.84% CSS 1.44% Mako 0.27%

billtracker's Introduction

billtracker

New Mexico Bill Tracker

Track bills as they move through the New Mexico legislature's website, by scraping the nmlegis.gov website. Send alerts when a bill's status changes, e.g. when it moves to a new committee so it might be time to go to a hearing or write letters to committee members.

The project name isn't specific to New Mexico since most of the code could be extended to any state or venue that offers bill information online. I'd welcome contributions from other states or, especially, for federal bills.

Requirements

In addition to basic flask, this requires: flask-login sqlalchemy flask-migrate flask-wtf Flask-Mail dateutil xlrd

On a Debian-like system, try:

sudo apt install python3-flask-sqlalchemy python3-flask \
                 python3-flask-migrate python3-flask-login \
                 python3-flaskext.wtf python3-flask-mail \
                 python3-dateutil python3-xlrd

(or the Python 2 equivalents, if you insist, but that isn't well tested).

Most of those packages should be available. Some Debian systems may not have python3-flask-mail.

Running Locally

Run the test server locally like this:

export FLASK_APP=run_billtracker.py
flask run

When you're satisfied, use whatever production wsgi server you prefer. The FlaskNotes file in this directory has some notes I made while learning how to run WSGI on Apache2.

Unit Tests

There are a few unit tests in the tests/ directory. Run them with:

python3 -m unittest discover

billtracker's People

Contributors

akkana 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.