cltwitter
Tweet like a hacker. cltwitter is a command-line utility for posting updates to
Twitter written in C. cltwitter uses the OAuth
authorization scheme, mitigating the need for passwords to be sent across the wire.
Features
- Handles input data from both the command line and standard input (e.g. piping)
- Supports image posting to Twitpic
- Auto-shortens URLs using the is.gd API
- Tab-completes Twitter screen names (Bash only)
Example usage
cltwitter supplies a command tweet for posting messages to Twitter. The command
accepts one argument (the message to be sent) on the command line or, if no argument
is given, reads one line from standard input. Both usages are depicted below.
Supplying Twitter message on the command line:
$ tweet "Hello Twitter!"
Supplying Twitter message on standard input (here piping from the UNIX command fortune):
$ fortune | tweet
Using the tab-completion feature:
$ tweet "@s<TAB>
@sourcebits @spolsky
Posting images to Twitpic:
$ tweet "An image says more than a thousand tweets." ~/images/birdhouse.jpg
Get it
- Source tarball
- Windows binary (x86 32-bit)
Note: the Windows binary might be lagging behind the source release a lot and thus lacking the latest features documented here.
Installation instructions
Consult the README document provided with the source package for all the how-tos and know-hows.
Found bugs? Want to contribute?
Bugs should be reported here. If you want to contribute code, the preferred way is to fork the project on GitHub, make your changes and send me a pull request.
TODO
- Tab-completion in other shells, such as zsh
- Switch to img.ly or similar picture upload service that supports OAuth in order to unify authorization.
- An easter egg ;)
License
cltwitter is free software licensed under the GNU General Public License, version 3. If you enjoy reading legal mumbo jumbo, check out the COPYING document provided with the source package.
