From Indie IT Wiki
Jump to: navigation, search

How To Tweet Via The Command Line

sudo apt-get install ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev
sudo gem install t
sudo mv /usr/local/bin/t /usr/local/bin/tweet
tweet authorize
tweet accounts
tweet help
tweet update "This is a test from my Linux computer via the command line."

Thanks -

How To Save A Twitter Feed With Command Line Tool

Download and install RSS Tool for Linux.

Single Manual Use


Multiple Automated Use

Edit your crontab.

crontab -e

Add the following line, which runs just before midnight, strips out the rubbish and saves the text format version into a text file.

59 23 * * * DATE=$( date +%F ) && /usr/local/bin/rsstool --since="$DATE" --shtml --sdesc --slf --txt >> ~/Documents/twitter_username.txt