icaoberg / twitter-projects

Just a simple collection of helper scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Twitter GitHub issues GitHub forks GitHub stars GitHub license

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

Example

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

Example

About

Just a simple collection of helper scripts.


Languages

Language:Shell 79.2%Language:Python 20.8%