README
This project contains helper scripts that let me post to Twitter periodically on several accounts.
All of the scripts make use of a file login.py
that looks like this
from TwitterAPI import TwitterAPI
consumer_key = '<key>'
consumer_secret = '<secret>'
access_token_key = '<key>'
access_token_secret = '<secret>'
api = TwitterAPI( consumer_key, consumer_secret, access_token_key, access_token_secret )
The contents of the file are described here.
scripts
tweet.py
Simple dumb script that posts a string.
For example, running
python tweet.py "Trying to post from terminal... did it work?"
should produce a post like this
tweet_and_upload_a_picture.py
Simple dumb script that posts a string and uploads an image.
For example, running
python tweet_and_upload_a_picture.py "Recuerden estar pendientes de las clases de inglés en su biblioteca @carnegielibrary más cercana" "../images/lets_speak_english.jpg"
should produce a post like this