Skip to content
Scrapes the national debt and tweets it
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
data
README
example_config.cfg
national_debt.py

README

retrieves the national debt and population, tweets it, and writes it to a file

example twitter output: http://twitter.com/#!/USADebtLevel/status/68023831498997760

national debt and population are retrieved from the us treasury and census sites
using beautifulsoup

the program expects a configuration file named config.cfg that matches the format
of example_config.cfg. 

includes functions get_national_debt() and get_us_population() 
Something went wrong with that request. Please try again.