Skip to content

pulkitsharma07/terminal-twitter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal Twitter

A Twitter CLI for hackers

Install

$ git clone https://github.com/mavidser/terminal-twitter.git
$ cd terminal-twitter

Optional Step: It is highly recommended that you replace the keys in main.py with your own keys, which you can get by creating an app on Twitter and setting the permissions to Read/Write.

Now run setup.py file.

$ python setup.py install

Note: Windows users should install colorama for colored output.

$ pip install colorama 

Usage

Display your twitter feed

$ tt        # Use --no-pager flag if you want the tweets in a 
            # contiuous output instead of a pager.

Display 50 tweets from your twitter feed

$ tt -n 50  # or $ tt --num 50

Retweet a tweet

$ tt rt 5  # Retweets the tweet on index 5

Favorite a tweet

$ tt fav 5  # Favorite the tweet on index 5

Open a tweet in the browser

$ tt browse 5  # Opens the tweet on index 5

Reply to a tweet

$ tt reply 5  # Replies to the tweet on index 5. 
              # Use --photo flag to reply with a photo.

Compose a tweet

$ tt compose

Compose a tweet containing an image

$ tt compose --photo # Insert filename/path to the picture when prompted.
                     # Alternatively, drag the picture in the terminal when prompted.

Display help

$ tt --help

About

A CLI to Twitter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published