a twitter bot for programming.reddit
Python Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs initialise the package structure Feb 11, 2014
tests initialise the package structure Feb 11, 2014
twitter-bot add logging Feb 12, 2014
.gitignore add logging Feb 12, 2014
AUTHORS.rst
CONTRIBUTING.rst initialise the package structure Feb 11, 2014
HISTORY.rst initialise the package structure Feb 11, 2014
LICENSE
MANIFEST.in
Makefile initialise the package structure Feb 11, 2014
README.rst Update README.rst Feb 15, 2014
requirements.txt use sqlite to store data Feb 11, 2014
setup.py initialise the package structure Feb 11, 2014
tox.ini

README.rst

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