Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 625ebb6a32
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (36 sloc) 1.357 kb
/* GIFTPUNK 0.01 */
Release under MIT License.
http://www.opensource.org/licenses/mit-license.php
Note: This is alpha software, and comes with no guarantees.
by @webisteme
Find out more: http://www.webisteme.com/blog/?p=898
/* DEPENDENCIES */
tweepy 1.7.1
MySQLdb
dateutil
MySQL
/* SET UP */
1. Create a Twitter account
2. Create an API key to read and write under the same account at dev.twitter.com
3. Set up a MySQL database (see MySQL DB below)
4. Save your credentials into settings_template.py
5. Rename to settings.py
6. Write some test tweets (see Syntax Guide below)
7. Run "python master.py" at the command line
/* INSTALLATION ON REMOTE SERVER */
Recommend using CRON on Linux
Make sure master.py is executable
/* MYSQL DB */
Create the database then copy and paste the instructions below:
create table statements (id BIGINT(30), date DATETIME, author VARCHAR(30), type INT(1), thing VARCHAR(140), status INT(1), expiry DATETIME);
create table tweet_ids (id BIGINT(30), date DATETIME);
create table thanks (id BIGINT(30), date DATETIME, from_user VARCHAR(30), to_user VARCHAR(30), thing VARCHAR(140));
/* SYNTAX GUIDE */
To broadcast need:
@account I need [something]
To broadcast offer:
@account I offer [something]
To delete tweet:
(reply to tweet) @account close
To thank someone
@account thanks [@recipient] for [thing]
Jump to Line
Something went wrong with that request. Please try again.