? ?

Previous Entry | Next Entry

Twitter friends again!

Update 12/2009: Mentions and retweets are excluded from the friends_timeline.rss.  Nowadays, it's better to join the mentions.rss feed with the home_timeline.rss.

Remember how angry I was at twitter? They turned off open friends feeds subscription since the WWDC?

It turns out the solution I needed was a one-liner cron job.

curl -u email:password > twitter_friends.rss

::slaps head::

Now I can use Google Reader again.  Thanks, Twitter API.  We can be friends again.



( 8 comments — Leave a comment )
Jul. 16th, 2008 01:17 am (UTC)
I really wish I had some clue as to what all this stuff means. Okay, I know it's "code" but, like, what do you do with the line of code? Where do you even go to paste this in to make things work?

Rhetorical question, really. I know it's not something you can explain in one or two Plurk-length sentences.

What's the best way to start learning this coding stuff? I mean, there's so much, so many kinds... none of which are BASIC or COBOL.

Heck, I can't even get a WordPress site to look right, let alone do groovy stuff.

No, I'm not looking to learn coding, not at this time in my life. My point, rather, in case you haven't caught on, is that I'm really impressed by the "smart people" like you and Nari and Zannah and Sjon who know how to do this stuff. It's a skill, more of a talent, really, which to me appears so arcane as to border on magic. I think it's really cool what you guys can do!

Enough fanboying.


I think I google the terms "oneechanbara" "dvd" almost every day now. Nothin' yet.

Multiple edits to fix redundancies and typos. Sorry!

Edited at 2008-07-16 01:21 am (UTC)
Jul. 31st, 2008 06:44 pm (UTC)
How often does that have to run? Once a day?
Jul. 31st, 2008 07:00 pm (UTC)
I run it hourly.

Remember that I'm dealing with two delays. The rate at which my cron job runs, and the rate at which Google Reader checks the public feed I created. (You may not have to deal with worrying about the second one.)

Here are my best case and worst case scenarios:

Best Case
A friend tweets at 12:59
My cron job picks it up at 13:00 and writes it out.
Google check the public feed at 13:01, and I see it!

A delay of a minute or two. Yay!

Worst Case
A friend tweets at 13:01, just after my job checked.
My cron job checks at 14:00 and writes it out.
Google miss by minute or two, and gets it next time, at 15:01.

A delay of a couple of hours. Drat.

For an enterprise application, you'd want to check more frequently with conditional GETs and honor any HTTP 304 replies, probably.
Aug. 5th, 2008 10:29 pm (UTC)
You can accomplish the same with without needing a cron job by using Yahoo Pipes, too. Here's how.
Jan. 21st, 2009 09:45 pm (UTC)
Doh. That *is* simple. Thanks.
Jun. 14th, 2009 11:31 am (UTC)
Surely this is only a local solution..
It seems a good idea when you are on your own Linux box but what if you are away from your pc???

Aug. 24th, 2009 12:42 pm (UTC)
Worst case could be better?
"Worst Case
A friend tweets at 13:01, just after my job checked.
My cron job checks at 14:00 and writes it out.
Google miss by minute or two, and gets it next time, at 15:01."
Sorry if there's some reason why this wouldn't work- I'm a student and hobbyist coder but I'm not familiar with the twitter API.
Couldn't you just run your cron job at every XX:50, so that google reader can't miss it? Then your worst case is only a 1 hour delay.
Aug. 24th, 2009 08:27 pm (UTC)
Re: Worst case could be better?
I have no control over when my friend tweets, nor when Google Reader gets around to reading my feed. If I change my cron job to work at XX:50, the odds are that Google Reader will start reading my feed just before I update it, at XX:49, ensuring the worst case is still the worst case.

Edited at 2009-08-24 08:28 pm (UTC)
( 8 comments — Leave a comment )



  • dblume
    5 Mar 2019, 22:27
    Welcome back to LJ.
    Even if it's just one post :-P

    People moved all over the internet.
    I stil like Plurk the best.
  • dblume
    4 Mar 2019, 06:13
    Good to see you checking in at LJ again, too. No, I'm not online anywhere like we used to be at LJ and Plurk. I really liked having a place where we could share our thoughts in a long-form post that…
  • dblume
    4 Mar 2019, 03:33
    Good to "see" you checking in at LJ... and taking steps to preserve your LJ and Google+ histories!

    Even better to see "you" and not your Dead Man Switch kicking in... again.

    Do you have a primary…
  • dblume
    13 Jan 2018, 18:54
    I "Searched" some of your archive looking for the fluorescent bulb post, but couldn't find it through 2009-02-06, and before that, LiveJournal no longer offers pages of your feed, just daily access,…
  • dblume
    10 Jan 2018, 18:22
    Ha ha! How coincidental, I was thinking about light bulbs yesterday myself. One of my Instagram contacts mentioned that the EU regulates the types of light bulbs people can use in their homes in…
Powered by
Designed by Jared MacPherson