del.icio.us -> LiveJournal

Feb 22, 2006 23:03

This is an automatically generated post to address Ario's RSS to Livejournal dilemma. I grabbed the last five links from my del.icio.us account through the RSS feed and then posted using the Livejournal API. You can check out the source for the script over here.

Stateless in Somalia, and Loving It positive ecoomic overview of the lack of ( Read more... )

Leave a comment

jmartenstein February 23 2006, 07:05:48 UTC
There could be some formatting improvements, but I think it gets the point across.

Reply

interimlover February 23 2006, 07:18:43 UTC
brings a tear to my eye!

questions:

-- could you config it so you only get one post like this a day... that would include any new posts in the feed from the time of the last retrieval?

-- instead of "link," could you show the actual URL and have it be a hyperlink of itself? (having "link" is cleaner, but the full URL gives more context)

Reply

jmartenstein February 23 2006, 19:00:38 UTC
The main chunk of functionality that I left out is the "grab from the last time of retrieval". I just sucked down an arbitrary number of posts. But I don't think that would be too hard to add in.

I was also thinking that it might be nice to put in a flag that says "one post per link" or "digest link".

As far as the formatting goes, that should be trivial. It should be "user" customizable, but I don't know what's the best way to do that. XSLT, maybe?

If you want to discuss this further, I'll probably be at the XBox 360 UI thing tonight.

Reply

interimlover February 23 2006, 07:23:40 UTC
oh man, one ever cooler thing would be if you could show the tags as well. each unique del.icio.us entry would look like this in the LJ post:

each tag would then be a link to the page for that tag on del.icio.us.

so if the tag was seattle for example, the URL it would send you to would be this:

http://del.icio.us/interimlover/seattle

Reply

jmartenstein February 23 2006, 19:01:15 UTC
Not sure how to grab the tags out of the RSS feed - that might take some research.

Reply

bostonsteamer February 23 2006, 20:11:39 UTC
each rss item has this:

cpan perl

So you've got two ways, either grabbing the space-separated list out of dc:subject, or grabbing what's after the final slash of each "resource" in taxo:topics/rdf:Bag/rdf:li

Reply

jmartenstein February 23 2006, 21:33:53 UTC
Good catch. I'm still figuring out how much I can do with XML::RSS...

Reply

interimlover February 23 2006, 20:40:20 UTC
yeah, that's just a nice to have.

so how do i get this setup with my blog?

Reply

jmartenstein February 23 2006, 21:23:12 UTC
You need Perl set up on a machine. If you're doing this off of Windows, then I'd recommend using ActiveState Perl.

Grab the file that's linked in the post (or Joe's updated code). Then set up a Scheduled Task (or cron job on Linux) to run the following on a daily basis: 'perl lj_rss.pl '. Oh, and you probably need to change the username to interimlover.

It needs a bit of work to make it usable for other people. Maybe I'll get to that tonight.

Reply


Leave a comment

Up