Getting Your Twitter Status From the Shell

Here is a quick shell script i whipped up to pull twitter status from the command line. The eventual plan is to pop this in a cron job, pipe it into a file and include this in a php page. Easy status updates for a website headline

wget -qO-$USER.xml?count=1 |
xmlstarlet select -T -t -v '//text'

Call it like…

./ <em>twitterid</em>

It needs:

The Twitter API…for lulz

So do you have any interesting uses for twitter?

This shell script was mostly for proof of concept  and playing with the twitter api.  I find the ease of use and hack-abilty to be excellent whenever I can quickly and easily get data to and from a simple script.  Do you have any other neat shell scripts for twitter?


Leave a Reply

Your email address will not be published.