All Projects → xiaoganghan → twitter-bot

xiaoganghan / twitter-bot

Licence: BSD-3-Clause license
a twitter bot for programming.reddit

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

twitter-bot

https://badge.fury.io/py/twitter-bot.png https://travis-ci.org/chrishan/twitter-bot.png?branch=master https://pypip.in/d/twitter-bot/badge.png

twitter bot

Dumps hot links instead of new links on programming.reddit only after they've got more than 5 comments.

  • Free software: BSD license

Get started

  • install dependencies
pip install -r requirements.txt
  • create a file named local_settings.py in the 'twitter-bot/twitter-bot' dir, and copy and parse the following code with the keys obtained from Twitter and Bitly.
TwitterKey = {
        'consumer_key': "",
        'consumer_secret': "",
        'access_token': "",
        'access_token_secret': ""
        }

BitlyKey = {
        'login': '',
        'apikey': ''
        }
  • Create a cron task to run twitter-bot.py, say every five minutes
*/5 * * * * python twitter-bot/twitter-bot/twitter-bot.py

Features

  • TODO
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].