curl -s http://twitter.com/your_user | grep '<span class="entry-content">' | cut -d">" -f2 | cut -d"<" -f1
curl -u your_user:your_password -d status='This is My update' https://twitter.com/statuses/update.xml
|
|
|
I found a couple of ways to update Twitter and read recent updates from the OS X command line. For instance, you can get all your tweets using the command line by using this command. (For some reason, retweets only show up as an "@" symbol, but your actual tweets will display correctly.)
curl -s http://twitter.com/your_user | grep '<span class="entry-content">' | cut -d">" -f2 | cut -d"<" -f1 curl -u your_user:your_password -d status='This is My update' https://twitter.com/statuses/update.xml
•
[12,465 views]
Hint Options
See and post Twitter messages from Terminal
Or you could… err... use the API? =/
See and post Twitter messages from Terminal
yes, it is quite nice that most of the UNIX/GNU tools come with the OS.
See and post Twitter messages from Terminal
All items in the Twitter API documentation contain a cUrl example. You can read more about this at http://apiwiki.twitter.com/Twitter-API-Documentation
Mark
---
Economy-x-Talk Have your own custom software created http://economy-x-talk.com
See and post Twitter messages from Terminal
They also have a big fat warning over them not to use them, since they're turning off HTTP authentication on June 30.
See and post Twitter messages from Terminal
Both work. Quick shell script:
twitter.sh "Twitter scripts - now on a command line near me via MacOSXHints.com"----- Kalak I am, and always will be, an Idiot. --- -- Kalak I am, and always will be, an Idiot. Edited on Apr 12, '10 10:19:45AM by Kalak
See and post Twitter messages from Terminal
You could just use TTYtter, which is an actual Twitter client.
---
mkb
See and post Twitter messages from Terminal
See, this is a hint about using Twitter from the command line -- not using a Twitter application that happens to be a command line package.
See and post Twitter messages from Terminal
I would suggest users prevent their password going into their command line history file.
See and post Twitter messages from Terminal
I wrote something up on this a while back as a way to schedule a Tweet.
See and post Twitter messages from Terminal
Or you could try out `beech ~ tweet from your homerow`: http://github.com/pjaspers/beech
See and post Twitter messages from Terminal
I just tested both, they work well.
See and post Twitter messages from Terminal
I've been using this for a while to keep track of automated tasks on remote computers.
See and post Twitter messages from Terminal
To read recent updates, keeping the retweets, hashtags and other stuff contained in html tags using sed.
I'm not best with sed and I'm sure there is a more concise way of writing this. John Maisey
See and post Twitter messages from Terminal
curl -s http://twitter.com/user | sed -n '/^$/d;s/^ *//;/class=.entry-content./!d;s/<[^>]\+>//g;s/^/* /;p' Edited on Apr 13, '10 09:51:07AM by
See and post Twitter messages from Terminal
Thanks. sed regex stuff makes my head hurt. :)
See and post Twitter messages from Terminal
My only comment is: why the H would you want to?
See and post Twitter messages from Terminal
This could be invaluable to sysadmins, or anyone requiring an automated notification.
See and post Twitter messages from Terminal
Ok, ok, I see your point.
See and post Twitter messages from Terminal
Just have a look.
See and post Twitter messages from Terminal
I also wrote a tool with some useful added feature. It is written in ruby and is super easy to install: just type
Help, please!
I am interested in trying twt, but I got an error when trying to install on 10.6.3. I do have XCode installed (I assume that's a prerequisite, but I don't know much about ruby). mbp17:~ lcrews$ sudo gem install twt Password: When you HTTParty, you must party hard! Building native extensions. This could take a while... ERROR: Error installing twt: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/yajl-ruby-0.7.5 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/yajl-ruby-0.7.5/ext/gem_make.out Any ideas? Thanks!
See and post Twitter messages from Terminal
This won't work after June 30, when Twitter turns off HTTP authentication... http://dev.twitter.com/pages/auth
See and post Twitter messages from Terminal
You might want to look into using Twurl, which is described as "OAuth-enabled curl for the Twitter API." This will make sure that you're more future proof as Twitter has been warning of the shutdown of basic authentication (which this tip uses) for a while now.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.27 seconds |
|