Skip to content

cmorell/tweet_cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Publish a tweet from python script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published