T – a command-line power tool for Twitter
sferik.github.io
sferik.github.io
Now 25 years later we finally have 'T'! Progress..
Go Engineers!
I could see the vestiges of the previous burst of hacking in the DEC-20's student written software library.
The popularity of the messaging programs should have been a big hint to us..
What used to be the heart of a microcomputer.
A Serious Business Micro, that is, not a glorified game system like a Commodore-64.
> xtank
There's documentation of a work to port it to modern systems:
http://documentation.wikia.com/wiki/Xtank
Also something on Freecode:
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...t leaders | xargs t unfollow #will work
t followers --sort=since > followers.log
Keep followers.log checked into Git and track your followers/unfollowers over time.Unfortunately, people who change their Twitter handles (which I found surprisingly common) show up as false positives - you either need to filter these out manually or match against the user id[1].
[0] https://github.com/ChimeraCoder/twitter-follower-logger
[1] Adding that as a separate field and then calling `cut -f2` would be a quick hack, now that I think about it.
You must:
4. not arrange for your Service to be pre-installed on any device, promoted as a “zero-rated” service, or marketed as part of a specialized data plan.
5. not frame or otherwise reproduce significant portions of the Twitter service. You should display Twitter Content from the Twitter API.
5. This isn't a full blown Twitter client, just a CLI interface. There's a difference.
https://www.dropbox.com/s/r2v6nq69jk9rw6s/birdcatcher.png?dl...
I assume this has to do with the third party limit ?
from requests_oauthlib import OAuth1Session
import json
keys = json.loads(open(keyfile).read())
# {"TWITTER_CONSUMER_KEY": "blah_blah_blah",
# "TWITTER_CONSUMER_SECRET": "blah_blah_blah",
# "TWITTER_ACCESS_TOKEN": "blah_blah_blah",
# "TWITTER_ACCESS_TOKEN_SECRET": "blah_blah_blah",}
def twitter():
return OAuth1Session(keys['TWITTER_CONSUMER_KEY'],
client_secret=keys['TWITTER_CONSUMER_SECRET'],
resource_owner_key=keys['TWITTER_ACCESS_TOKEN'],
resource_owner_secret=keys['TWITTER_ACCESS_TOKEN_SECRET'])
def tweet(status, reply_to=None):
endpoint = 'https://api.twitter.com/1.1/statuses/update.json'
data = {'status': status}
r = twitter().post(endpoint, data=data)
return r.status_code
def tweet_with_image(status, imgfile, reply_to=None):
endpoint = 'https://api.twitter.com/1.1/statuses/update_with_media.json'
data = {'status': status}
if reply_to is not None:
data.update({'in_reply_to_status_id': reply_to})
r = twitter().post(endpoint, data=data, files={'media[]': open(imgfile, 'rb').read()})
return r.status_codehttps://github.com/sferik/t/blob/7f1fcac61047dcb703e9519c837...
this is because the OP's own twitter ruby gem can do that, this CLI app is basically a front end for the ruby gem
client.update_with_media("I'm tweeting with @gem!", File.new("/path/to/media.png"))
https://github.com/sferik/twitter/blob/48efb642beaa19355a4c1...Go here and generate yourself a token for your account: https://developers.facebook.com/tools/explorer
Then do the equivalent of
curl -X POST -d "message='Your status message goes here.'" https://graph.facebook.com/me/feed?access_token=YOUR_TOKEN_HERE