You are not logged in.

#1 2010-08-27 15:53:41

tsv
Member
From: UK
Registered: 2008-12-03
Posts: 71
Website

Command line Twitter application suggestions

[sorry if this is the wrong place, feel free to move it and yell at me]

I can't seem to find any real command line Twitter applications, and wondered if anyone could recommend one? To read as well as write to Twitter, that is. I realise how easy it is to tweet from the prompt.

I'm currently running Twitter through bitlbee inside of irssi, but I'd rather have it separate, and hopefully support for things like retweeting.

If noone knows of much, I may have a new project on my hands!

Offline

#2 2010-08-27 15:55:36

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Command line Twitter application suggestions

Moving to newbie corner where you are likely to find more hits/answers.

And...yells at tsv (just for the heck of it) wink


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-08-27 16:01:41

frabjous
Member
Registered: 2010-07-13
Posts: 367

Re: Command line Twitter application suggestions

AUR lists bashtc, bti, ttytter and twidge. I've been meaning to look into this, so I'll check these out and give you my report. Maybe we can swap notes.

EDIT: Well, my experiment didn't take long. bashtc and twidge both failed to install through yaourt for one reason or another. bti seems to only allow you to send tweets. So ttytter looks like the most promising of the bunch. It does allow to read new tweets, retweet, reply, send DMs, etc.

Last edited by frabjous (2010-08-27 16:14:09)

Offline

#4 2010-08-27 16:22:00

alexandrite
Member
Registered: 2009-03-27
Posts: 326

Re: Command line Twitter application suggestions

It's not command-line per se (you can't type in "tweet HELLO MICROBLOG COMMUNITY" or whatever) but bitlbee has support for twitter these days

Offline

#5 2010-08-27 16:26:25

tsv
Member
From: UK
Registered: 2008-12-03
Posts: 71
Website

Re: Command line Twitter application suggestions

@frabjous: Thanks, not entirely sure how my searching failed to find most of those so massively. Will give ttytter a shot!

@alexandrite: Thanks, but as I said that's what I'm using right now and am not very satisfied with.

Offline

#6 2010-08-27 17:15:51

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

Re: Command line Twitter application suggestions

ttytter, definitely.


arst

Offline

#7 2010-08-27 19:22:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Command line Twitter application suggestions

More here: https://bbs.archlinux.org/viewtopic.php?id=74760

And defintitely TTYtter...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2010-08-27 22:10:48

shat
Member
From: Oklahoma, USA
Registered: 2010-08-13
Posts: 5
Website

Re: Command line Twitter application suggestions

1)  cd ~/
2) nano tweet.sh or vi tweet.sh


3) Paste the following code into tweet.sh, remember to change {USERNAME} to your twitter username (ie: {JUSTINSHATTUCK} )

#!/bin/bash
 
if [ ! $# == 1 ]; then
  echo "Need a tweet!"
  exit
fi
 
read -s -p "Twitter passwd: " TWITTERPASSWD
curl -s -u {USERNAME}:$TWITTERPASSWD -d status="$1" https://twitter.com/statuses/update.xml > /dev/null 2>&1
echo ''

4) Ctrl^x (save and exit)
5) chmod +x tweet.sh
6) nano ~/.bash_rc
7) Add the following line:

alias tweet = "~/tweet.sh"

8) Ctrl^x (save and exit)
9) ln -s ~//tweet.sh /usr/bin/tweet

DONE!

Now you can type tweet "yo this works now -- thanks @justinshattuck" at console and push enter, type in password and poof.  Tweeted!

Offline

#9 2010-10-10 23:30:46

lydgate
Member
From: London, UK
Registered: 2006-01-10
Posts: 60

Re: Command line Twitter application suggestions

I think that the fact that Twitter no longer supports basic auth has broken a lot of these clients.  When bashtc stopped working, I wrote my own very basic python twitter client using OAuth.  It only really worked for me since a lot of the OAuth stuff was hard-coded.  I've now generalized it to support the OAuth process and have released the source:
http://gitorious.org/pytc/pytc

I'm not a programmer so I'm afraid it's quite sloppy.  Unfortunately it also has some awkward dependencies, including one that you need to patch.  But hopefully it will be of use to someone, and if you improve my code it would be great to get some patches (I know I've got a lot to learn).

You can also follow the twitter account for the project here:
http://twitter.com/pythontc

EDIT: Here's a screenshot of what it looks like with the public timeline.
shot20101011003644.png

Last edited by lydgate (2010-10-10 23:40:43)

Offline

#10 2010-10-11 14:07:00

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: Command line Twitter application suggestions

To get around the OAuth problem, you can check out http://www.supertweet.net/

Offline

#11 2011-05-14 02:55:13

riclags
Member
Registered: 2011-04-17
Posts: 6

Re: Command line Twitter application suggestions

May I suggest PTT (Python Twitter Tools)? This is a good CLI Twitter client (and it supports OAuth).

Site: http://mike.verdone.ca/twitter/

Offline

#12 2011-05-14 17:07:00

kittykatt
Member
From: Missouri, USA
Registered: 2009-11-04
Posts: 260
Website

Re: Command line Twitter application suggestions

I had a BASH client, twitbash, that allowed you to use OAuth with a registered Twitter API consumer and consumer secret key and stuff. There are only a couple of commands available:  statuses_update (allows to specify id of tweet to tweet in reply to), account_update_profile_pic, twitpic_upload, and twitpic_upload_post.

Here it is in the AUR:  http://aur.archlinux.org/packages.php?ID=40616


- [ My Blog ] | [ AUR Packages ] | [ My deviantART ] | [ screenFetch ] | [ SilverIRC ] -

Offline

Board footer

Powered by FluxBB