Some of George Carlin'sMr. Anonymous' Pithy Questions http://t.co/nP109lQ5
— Bill the Reaper “L” #YNWA (@billsaysthis) October 1, 2012
I Tweeted
I Tweeted
I Favorited a Tweet
Really this should link to http://www.youtube.com/watch?v=aZnZnza8Kng
I Tweeted
I Tweeted
I Tweeted
I Tweeted
Publishing Tweets to a WordPress blog
With IFTTT losing Twitter triggers I figured I better do something if I want to keep reposting my tweets to this blog. So with the help of the inestimable Steve Morris I whipped up a little Ruby script that is meant to be run as a cron job; the results are visible as the previous seven posts here.
Requirements for using this script:
- A Gmail account from which to send emails.
- A Twitter developer account with an application set up so you have the necessary keys and tokens to use in the script.
- OSX and will probably work on Linux as well, but as for Windows I have no idea nor do I have an interest in finding out (if you port it, feel free to tweet it to me and if it seems reasonable I’ll post it here). Note that OSX and Linux come with a sufficient Ruby to run this, though you may need to tailor the first line shebang to your installation.
I used two gems to power the script: Chris Kowalik’s gmail and Erik Michaels-Ober’s twitter. It’s possible I could’ve used Erik’s t Twitter command line gem and had an even simpler script but this seems fine for now.
The script has three main parts:
- Configure Twitter and grab the most recent 20 tweets (the default is 20, which for me is more than sufficient).
- Loop through the tweets in reverse order (to go from oldest to newest) and for the tweets made since midnight today mail them to WordPress.
- Send an email (through Gmail) to your blog’s secret email address with a body containing the tweet short code plus the category, comments, and publicize shortcodes to properly configure the resulting post.
Next thing I’m going to work on is adding favorites to the script.
Update: Now does favorites too.
A Tweet
A Tweet
A Tweet
A Tweet
A Tweet
A Tweet
Twitters for 2012-08-28
- Shutterfly on #Yelp Like James M (http://t.co/cTsVX3Kr… http://t.co/ury6wlyT #
- @NyLiverBull Cole left? Haven't seen any announcement. #
Powered by Twitter Tools
Twitters for 2012-08-26
- @comcastcares Is the availability date announced? #
- @chadfowler Peoples were distracted by the PIE. CHERRY PIE #nomnomnom #
- @ComcastMichael In HD? Haven't noticed any new HD in a while… #
Powered by Twitter Tools
A Twitter Fav from whump
Leonard Richardson’s Constellation Games is one of the best books I’ve read in ages, go buy it! — @whump
Twitters for 2012-08-25
- @drnic We'll need drone traffic control PDQ then! #iwanttacostoo #
- Really felt like some live @thinlizzy this morning and spun Live and Dangerous all the way through #rockneverdies #
- Boo f'ing hoo! Exclusive: Startup Launch Ruined By Careless Blogger http://t.co/L2Db8MJi via @prismatic #
- Star Wars comedy 'toon TV show coming http://t.co/U7NaNah9 Looks hilarious! #
Powered by Twitter Tools
Twitters for 2012-08-24
- Less than 60 hours to go on @hackerdojo Kickstarter, please support is if you haven't yet! #
- @comcastcares Do it soon please, I miss my Messi #
- @jetstrap Will the builder support custom colors and other variables, as on the TB Customize page? #
- RT @dbfarber Texas judge warns of civil war if Obama is re-elected http://t.co/hNBAEcoT… #cnn #whackjob #gop #fail #
- Awesome news for @jmathai and @OpenPhoto, congrats on the fellowship! #hackerdojo #
Powered by Twitter Tools