Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A twitter bot to search for new records and then post them to twitter.

License

NotificationsYou must be signed in to change notification settings

NeotomaDB/NeotomaBot

 
 

Repository files navigation

Lifecycle:StableDOINSF-1948926

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.

Neotoma Twitter Banner

Contributors

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.

Tips for Contributing

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.

Requirements

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

Running Locally

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

Packages

No packages published

Languages

  • Python99.8%
  • Procfile0.2%

[8]ページ先頭

©2009-2025 Movatter.jp