Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xiaoganghan/twitter-bot

a twitter bot for programming.reddit
https://github.com/xiaoganghan/twitter-bot

Last synced: 1 day ago
JSON representation

a twitter bot for programming.reddit

Awesome Lists containing this project

README

        

===============================
twitter-bot
===============================

.. image:: https://badge.fury.io/py/twitter-bot.png
:target: http://badge.fury.io/py/twitter-bot

.. image:: https://travis-ci.org/chrishan/twitter-bot.png?branch=master
:target: https://travis-ci.org/chrishan/twitter-bot

.. image:: https://pypip.in/d/twitter-bot/badge.png
:target: https://crate.io/packages/twitter-bot?version=latest

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