4 ms·
One of my favorite tools...in fact, I'd argue that T is what got me to finally understand why, as a programmer, I should still care about CLI (sferik maintains
by danso 12y ago
One of my favorite tools...in fact, I'd argue that T is what got me to finally understand why, as a programmer, I should still care about CLI (sferik maintains both T and the excellent Ruby twitter client gem, which powers T)...Studying the T code has also helped me understand the principles of a good CLI system...all around, a well-maintained and fun project.
Using the `--csv` flag and a command-line tool like csvkit, you can make all sorts of utilities. Here's how to unfollow everyone who doesn't follow you:
t leaders --csv | csvcut -c 9 | xargs t unfollow
Unfollowing everyone who hasn't tweeted since the first half of 2013:
t followings --csv | csvgrep -c 3 -r '2013-0[1-6]' | csvcut -c 9 | xargs t unfollow
Note: I haven't run these in awhile so the field order may have changed...
- rdc12 12y agoLooking at some of the examples the csv part is unneeded in the first example. t leaders | xargs t unfollow #will work
- danso 12y agoOops, you're right. That was a vestigial step for when I was filtering the list by some standard (e.g. less/greater than certain number of followers) and then unfollowing.
- dpeck 12y agobetter to use --long instead of --csv, the latter preserves newlines that can lead to problems with piping and xargs.