Giter Club home page Giter Club logo

fms_parser's Introduction

Running

Optionally set up a virtualenv. (You need this on ScraperWiki.) Run this from the root of the current repository.

virtualenv env

Install dependencies.

pip install -r requirements.pip

POSIX

This one command downloads the (new) fixies and converts them to an SQLite3 database.

./run.sh

Then serve the web api like so.

./api.py

Windows

Run everything

run.bat

Serve the API locally.

python api.py

Scheduling

POSIX

Run this to schedule the above script to run daily.

crontab -l > /tmp/crontab
./crontab.sh >> /tmp/crontab
cat /tmp/crontab | crontab
rm /tmp/crontab

Run crontab -e to edit the schedule later.

Windows

In the Task Scheduler, set run.bat to run every day at 5 pm.

Testing

To make sure that the script is still running on ScraperWiki, run

./is_it_running.py

Results

Resulting files go in the data directory, to which the http directory is linked (for ScraperWiki compatibility). fixie contains the original files, daily_csv contains corresponding csv files, one per table per day, and lifetime contains eight csv files, one per table, with all of the days stacked (unioned) on top of each other.

Tables

There are eight tables.

  • I. Operating Cash Balance (t1)
  • II. Deposits (t2a) and Withdrawals (t2b)
  • IIIa. Public Debt Transactions (t3a)
  • IIIb. Adjustment of Public Dept Transactions to Cash Basis (t3b)
  • IIIc. Debt Subject to Limit (t3c)
  • IV. Federal Tax Deposits (t4)
  • V. Short-term Cash Investments (t5)
  • VI. Incom Tax Refunds Issued (t6)

Frontend

python -m SimpleHTTPServer

then visit http://localhost:8000

fms_parser's People

Contributors

bdewilde avatar tlevine avatar

Stargazers

 avatar

Watchers

 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.