bem’s blog

 
« Back to blog

RSS Feed to LiveJournal script

I've cleaned it up a bit, so I figured I could share it with the world, in case anyone else is interested in such a product. (This is also a test to see what happens if I send a Ruby script and a YAML file to Posterous.

This is meant to be run from cron (or the scheduler of your choice) as often as you like. I currently run it every 5 minutes. If you're not  scraping from Posterous, you can leave the Posterous hack part off. While it in theory supports pulling from multiple feeds, it doesn't keep track of the last entry in each feed seperately, so it wouldn't work quire right in the current version. (I'll probably fix that in the near future and post again)

I think that's about all I have to say about that for now. Maybe if someone expresses interest in using it, I'll write a proper README. =]

Update: So the attachment thing was an epic fail. It just dumped the entire thing into the post. I will put the files up here.

Comments (2)

Jan 16, 2010
che1i0s said...
Hi Bem,
fantstic work! Thank you so much man, it is all that I needed.
One little notice - script will fail in line 85 if blog is empty (trying to get even with most recent date).
Kind regards
che1i0s
Jan 17, 2010
Bem Jones-Bey said...
Thanks! I'm glad you like it. I've moved the code to github and fixed the bug, it should now work with empty livejournals.

(see http://github.com/bemjb/rss2lj/blob/master/rss2lj.rb)

Leave a comment...

 
To leave a comment on this posterous, please login by clicking one of the following.
Posterous-login     twitter