How to: export your LJ "Watching" list to another RSS feed-reader

May 26, 2011 22:40

I've given up on using LJ for my RSS feeds. I've got 88 of them, which means I sometimes don't see real people posts for pages and pages. I'm jumping to Google Reader. Google Reader will import "OPML" data, so that's how I wanted to do the transfer. This is a how-to ( Read more... )

geek, lj, perl

Leave a comment

Comments 6

da_lj May 27 2011, 02:44:52 UTC
I guess I could've used the source from the Friend of a Friend exporter as a template to do it entirely in python.

Dang, that would have been fun, too. *shrug*

Reply


thingo May 27 2011, 03:24:47 UTC
Wait. How does this deal with friends-locked posts that would otherwise require a password in LJ? (I can't tell from your description whether it all Just Works.)

Reply

da_lj May 29 2011, 19:02:14 UTC
eep, it seems this comment never made it to my mail-reader. Sorry for lack of followup...

For my situation (moving RSS feeds off of LJ to another reader) it doesn't come up.

The FOAF to OPML link says:

If you check the auth checkbox, the OPML file will contain links that will let you read private (friends only) messages. Not all feed aggregators support this feature - check with your product documentation.

After experimentation, I can say that google reader does NOT pick up the locked posts generated by that OPML file.
(format: "http://whomever.livejournal.com/data/atom?auth=digest)

However, if I visit the locked posts URL myself, Firefox prompts me for basic authentication, and then shows me the feed. So, I can see how in principle, you authenticate to LJ, a fancier feed-reader would then allow you to download the feeds.

Sadly I don't have data on other feed-readers that would work. Though, the one built into firefox MIGHT be sufficient...

Reply


merle_ May 27 2011, 04:58:58 UTC
You da(_lj) man!

I have the same question as thingo. I'd been looking into Mechanize for work purposes but did not see a trivial way to add in authentication. My best guess was to start the script by logging in with hardcoded password and then start making requests using the cookie it returned, but.. eeeew.

Reply

da_lj May 29 2011, 19:08:14 UTC
See my comment to thingo above...

WWW::Mechanize *could* do that authentication as you suggest. Yes, sort of ew.

http://www.livejournal.com/support/faqbrowse.bml?faqid=306

gave me another idea, which is to feed your browser's LJ cookie directly to WWW::Mechanize. Let me know if you get that to work!

Reply

merle_ May 29 2011, 21:59:17 UTC
I think you could feed a cookie in (and was how I was thinking of doing it), but the problems are:
- the cookies are tied to an IP and change in a serial manner
- every now and then LJ just logs you out
- if you have a slow connection you can see in the status bar that it goes through a bunch of redirects

None of those is insurmountable but it makes for a fragile system that will need constant maintenance of that cookie.

Reply


Leave a comment

Up