Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 870 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 870 Bytes

Twitter CMD

A sample to publish a tweet in user timeline.

Requeriments and installation

Python (2.7.3v)

Install (if you don't have it) Python:

sudo apt-get install python2.6

Install tweepy module using install.sh script

./install.sh

##Configure Python script

  1. Go to App developer twitter page and sign up with a twitter account.
  2. Create a new App
  3. Go to Permissions Page of createad App and change to Read and Write
  4. Go to Keys and Access Tokens and regenerate Consumer Key and Secret and also My Access Token and Token Secret
  5. Full config.py file with the return values
cat config.py.sample > config.py

How to use

Execute script with the parameters -u to set user destination (without @) and -m to set message

python tweet_xmas.py -u "CarlosMR1985" -m "Follow me"