Syndiated Feed (Atom) of the recent U.S. National Public Debt
The U.S. Treasury publishes a feed (RSS) daily with various metrics regarding the debt.
This replicates that feed (Atom), but publishes just the Total Public Debt number.
This is a Flask app (Python3).
$ cd [your workspace]
$ git clone https://github.com/pubdata/usnationaldebtfeed.git
$ cd usnationaldebtfeed
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install --upgrade pip
$ pip install --upgrade setuptools
$ pip install -r requirements.txtFurther deploy instructions will vary based on production system requirements.
For testing, use gunicorn:
$ gunicorn usnationaldebtfeed:appFrom a browser, access the app using: http://localhost:8000/feed
This is running at DebtToThePenny.com/feed, which is used to publish the @DebtToThePenny Twitter feed.
MIT