- Notifications
You must be signed in to change notification settings - Fork0
A twitter bot to search for new records and then post them to twitter.
License
NeotomaDB/NeotomaBot
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A twitter bot to search for new records in theNeotoma Paleoecology Database and then post them to the@neotomadb Twitter account.
This program was an experiment to see how good my Python programming skills are. Apparently they're okay. The code could probably use some cleaning, but I'm generally happy with the way it turned out.
The program runs on a freeHeroku dyno and tweets semi-regularly.
This project is an open project, and contributions are welcome from any individual. All contributors to this project are bound by acode of conduct. Please review and follow this code of conduct as part of your contribution.
Issues and bug reports are always welcome. Code clean-up, and feature additions can be done either through pull requests to project forks or branches.
This application runs using Python v3. All required packages are listed in therequirements.txt file, generated using the python packagepipreqs
.
Tweets are pulled either from theresources/cannedtweets.txt or generated using theNeotoma API/v1.5/data/recentuploads/n
endpoint. This endpoint returns a list of all dataset uploads within the lastn
months using an XML format.
The application requires four environment variables, stored as configuration variables in the Heroku dynamo. These are the keys required to access the Twitter API. To obtain these keys for your own use you must add theDeveloper status to your existing Twitter account and register an application to obtain the following keys:
- CONSUMER_KEY
- CONSUMER_SECRET
- ACCESS_TOKEN_KEY
- ACCESS_TOKEN_SECRET
It is possible to run this code locally if you have the environment variables set. Just runpython3 neotomabot.py
About
A twitter bot to search for new records and then post them to twitter.
Topics
Resources
License
Code of conduct
Stars
Watchers
Forks
Packages0
Languages
- Python99.8%
- Procfile0.2%