The code repository for this energy twitter bot. The bot exists to help illustrate that sustainable energy production in the United States is a complex and ever-present problem.
This script runs at the 5 minute mark every hour according to a cron job scheduled on a raspberry pi. For testing purposes, I recommend printing out generated tweet strings rather than tweeting them to any particular account. You can do this by changing which line is commented out / uncommented out in the app.py script in the update_status() function.
To run the code, you'll need to register your own developer accounts with EIA and Twitter and put their API tokens into a JSON file according to the specifications of the getters at the top of app.py. I am unsure if a particular version of python is needed - I have been using 3.7.3.
Contact the maintainers or open an issue/pull request.