Skip to content

About

U.S. National Debt Syndication (Atom) Feed

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

usnationaldebtfeed

Syndiated Feed (Atom) of the recent U.S. National Public Debt

Synopsis

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.

Installation

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

Further deploy instructions will vary based on production system requirements.

For testing, use gunicorn:

$ gunicorn usnationaldebtfeed:app

From a browser, access the app using: http://localhost:8000/feed

Example

This is running at DebtToThePenny.com/feed, which is used to publish the @DebtToThePenny Twitter feed.

License

MIT

About

U.S. National Debt Syndication (Atom) Feed

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages