The truth is boredom, it's excess ([info]tinyjo) wrote in [info]lj_nifty,
@ 2004-11-24 11:03:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood: geeky

Reading your Friends Page in Thunderbird (and an S2 RSS style)
I like to read my friends page while I'm at work. Like many employers, my current boss would prefer that I didn't, and got on with doing what I'm supposed to be doing. Therefore I must use cunning. So imagine my delight when I downloaded the latest version of Thunderbird (0.9) and lo and behold... RSS support. Wehay, I thought, I can read my friends page as if it were email!

The first step was an RSS feed of my friends page. I looked at the S1 one, but checkcookies didn't work (unfortunately - you'd think it would use Firefox's, and perhaps it will in a future version) and I wanted to be able to read protected posts. I realised that if I made an S2 style, I could use auth=digest to authenticate myself. So, I made an S2 style for RSS: http://www.livejournal.com/customize/advanced/layersource.bml?id=2870759&fmt=html. Paid users can copy the code from that layer into their own layer and use that as the basis for their own style - see the FAQ for info on creating a style.

Once you've got your style, you need to know its ID number. Then you can subscribe to your friends page at http://www.livejournal.com/users/exampleusername/friends/?s2id=XXXXXX. To see the full text of the post in plain-text, you'll need to check the "Display article summary" checkbox when you subscribe. If you want to read protected posts, you're going to need the latest nightly build of Thunderbird as the 0.9 release doesn't support digest authentication. Once you've got that, you can add &auth=digest to the URL. When you do, Thunderbird will ask you for your LJ username and password, which you can get it to save and then you're done!

If, like mine, your friends are a talkative bunch, you might also want to fetch entries more than 50 back. What you can do is to subscribe to http://www.livejournal.com/users/exampleusername/friends/?s2id=XXXXXX&skip=50. This will collect any items in the skipped back feed if it hasn't seen them before, so you don't miss out, but you don't get double copies of things either - nifty!

Edit Hmmm. The last paragraph was true when I tested it, I swear! But it doesn't seem to be true now for some reason - I'm getting double postings. If I work it out, I'll let you know.

Edit again Got it! It was caused by something I did when I was testing things - you shouldn't get any double posts if you set it up. It's worth noting though, that Thunderbird doesn't very thoroughly clean up when you delete a feed or account - you have to manually go to your profile and delete the folder to get it properly re-set.



Page 1 of 2
<<[1] [2] >>

(Post a new comment)


[info]zach
2004-11-24 03:38 am UTC (link)
Thanks for this. It's just too bad that friends page RSS isn't built into LJ.

(Reply to this) (Thread)(Expand)


[info]crschmidt
2004-11-24 06:37 am UTC (link)
You'd think that in all the times brad had said "Yeah, I'd like to see that", and I'd offerred to write the code, someone on staff would have said "Go ahead."

(Reply to this) (Parent)(Thread)(Expand)

(no subject) - [info]immorak, 2004-11-24 08:14 am UTC (Expand)
(no subject) - [info]crschmidt, 2004-11-24 09:05 am UTC (Expand)
(no subject) - [info]immorak, 2004-11-24 09:25 am UTC (Expand)
(no subject) - [info]mart, 2004-11-25 07:32 am UTC (Expand)
(no subject) - [info]crschmidt, 2004-11-25 07:40 am UTC (Expand)
(no subject) - [info]trejkaz, 2004-11-24 02:07 pm UTC (Expand)
(no subject) - [info]pne, 2004-11-24 07:30 am UTC (Expand)
reading lj at work
[info]fatherbingo
2004-11-24 04:13 am UTC (link)
I was working on a style that looked like Excel, but this sounds a little more reasonable.

(Reply to this) (Thread)(Expand)

Re: reading lj at work
[info]saint_monkey
2004-11-24 05:58 am UTC (link)
I might be interested in that excel style just for it's kitsch value. (I'm an excel type.)

(Reply to this) (Parent)(Thread)(Expand)

Re: reading lj at work - [info]fatherbingo, 2004-11-24 06:16 am UTC (Expand)
Re: reading lj at work - [info]kunzite1, 2004-11-24 09:27 am UTC (Expand)
Re: reading lj at work - [info]fatherbingo, 2004-11-24 09:32 am UTC (Expand)
Re: reading lj at work - [info]kunzite1, 2004-11-24 09:36 am UTC (Expand)
Re: reading lj at work - [info]trejkaz, 2004-11-24 02:08 pm UTC (Expand)
Re: reading lj at work - [info]museumfreak, 2006-12-02 08:45 pm UTC (Expand)

[info]chicken_cem
2004-11-24 06:25 am UTC (link)
Where can one get the nightly builds? I don't see a specific one for thunderbird here: http://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest-trunk/. I am confused. Thanks. BTW, your style rules! I have been able to use in in my "My Yahoo" RSS feeds, too.

(Reply to this) (Thread)


[info]tinyjo
2004-11-24 06:35 am UTC (link)
I was surprised how difficult it was to find this, but you can get them here - http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/. It's very odd. I'm using the one from the latest-0.9 folder.

I'm glad the style is working out - thanks for the compliment :)

(Reply to this) (Parent)(Thread)(Expand)

(no subject) - [info]chicken_cem, 2004-11-24 06:39 am UTC (Expand)

[info]chicken_cem
2004-11-24 06:31 am UTC (link)
Also, here's an interesting thing. If you accidentally 'delete' an entry in the RSS feed, it moves it to the 'Trash' folder for that account, and then if you move it back into the feed list, it no longer sorts it into the rest in the original (chronological) order (which BTW I like, because LJ's default reverse-chronological sometimes annoys me), but just sticks it at the very bottom as if it were the newest one. Weird!

(Reply to this)


[info]chicken_cem
2004-11-24 06:33 am UTC (link)
Following up on my lat comment -- what happens to the '50' limit if you 'delete' a whole bunch of feed articles? I.e., do you get more stuff piped in ? That is, if you delete one, does number 51 (the oldest now) come trundling in? Or should it? Because I don't see it doing that. If I delete one, the total number of feed items seems to just stay at 49.

(Reply to this) (Thread)


[info]crschmidt
2004-11-24 06:39 am UTC (link)
The feed will always only offer 50, so I'd expect that if you delete one, you'd just go down to 49 until the item you deleted would have been off the bottom anyway.

So, if you delete the oldest entry in your 50, the next entry will push it back to 50, but if you delete the newest, you'll be at 49 until you get 50 new entries.

(Reply to this) (Parent)(Thread)(Expand)

(no subject) - [info]chicken_cem, 2004-11-24 06:41 am UTC (Expand)

[info]chicken_cem
2004-11-24 07:00 am UTC (link)
Here's another interesting thing that happened to me -- when I added '&auth=digest' to the URL after upgrading to the latest nightly build, it didn't sort the protected posts in date order into the rest of the messages, but rather just glommed them all onto the end as if they were all the newest. Which in a way they were. Hmmm.

(Reply to this) (Thread)


[info]tinyjo
2004-11-24 07:05 am UTC (link)
Yeah. Because I don't know what timezone each post on the Friends page is, I can't give it a proper date that Thunderbird will recognise, so it just assigns them all the time that it picked them up in the feed. Slightly annoying, but unavoidable.

(Reply to this) (Parent)(Thread)(Expand)

(no subject) - [info]chicken_cem, 2004-11-24 07:18 am UTC (Expand)
(no subject) - [info]trejkaz, 2004-11-24 02:10 pm UTC (Expand)

[info]chicken_cem
2004-11-24 08:49 am UTC (link)
I see now that I was wrong about the same stylesheet working in the "My Yahoo" RSS -- it doesn't work quite right, because obviously there are some Thunderbird-specific things in your layout code that make it a little broken in Yahoo's RSS reader. But I suppose that's easily fixed by tweaking the code and making a separate new layer & style for Yahoo.

Also, when OS X 10.4 Tiger comes out, I think Safari will have a built-in RSS feed reader. So that's another one I might start using at some point.

(Reply to this) (Thread)

Safari does have it...
[info]quecojones
2005-01-19 12:40 am UTC (link)
I'm running Tiger (build 8A323) with Safari 2.0 (build 172... I think) and this works with it. I didn't even have to add the &auth=digest to the URL. Safari seems to just grab the necessary information from the keychain. ;)

(Reply to this) (Parent)


[info]chicken_cem
2004-11-24 08:55 am UTC (link)
Actually, huh, when you get more than 50, the old ones stay! So now I have 76 items in there. I guess I should actually delete a bunch. I was under the impression that Thunderbird would automatically delete anything over 50 from the oldest end of the queue. Clearly not.

(Reply to this)


[info]phoenixdreaming
2004-11-24 12:49 pm UTC (link)
Fantastic :) I'm using the s2id url in Opera's feed reader, which uses the browser cookies to authenticate and so doesn't require auth=digest, and it's working very nicely. I especially like how it says 'there are currently x comments'. May poke at the code a bit and add userpics as well, and then I may well give up using my friends page at all.

(I'd wondered about creating an S2 friends page syndicating style, and I'm glad you've done one as it saves me having to go 'well, what's RSS and where can I find a dummy's guide to it?' and then giving up with the S2 compiler laughing at me.)

(Reply to this)


[info]zenhedon
2004-11-24 01:36 pm UTC (link)
Isn't it possible to make an s2id style "public", so anyone can use it without having to create their own style first? Or did that "feature" (coulda been a bug) go away? It used to work anyway, for some s2id #s...

If I create an S2 style for friends-rss, do I have to be using S2 for it to work? I'm still using an S1 style, and don't particularly want to change it...

(Reply to this) (Thread)


[info]zenhedon
2004-11-24 01:40 pm UTC (link)
nevermind...answered my own question - yes, can create an S2 style & it works w/s2id=xxxx even if you're using S1 normally...

(Reply to this) (Parent)


[info]spatulistic
2004-11-24 04:22 pm UTC (link)
Forgive me if this is a silly question.. but what if you have your journal style in S1. can you still do this?

(Reply to this) (Thread)


[info]tinyjo
2004-11-25 01:13 am UTC (link)
Yes, you can still create S2 styles and use the ?s2id arguement to view your journal using them while you're using S1.

(Reply to this) (Parent)(Thread)(Expand)

Follow-up - [info]caffeine_girl, 2004-11-29 08:02 am UTC (Expand)

[info]endquote
2004-11-29 02:59 pm UTC (link)
Hm. I created a new layer with your code, but clearly I'm doing something wrong.

(Reply to this) (Thread)

/?s2id=xxxx doesn't work
[info]likeablerodent
2005-01-02 05:26 am UTC (link)
I have the same problem.

I created the layer, but using the /?s2id=xxxx arguement doesn't change the style for me. If I change my style through the customize menu it shows up correctly with the RSS, but that's not the best default style.

Actually it's just not a problem with this style, as if I use the /?s2id=xxxx for any of my styles it doesn't work for me.

Any ideas from anyone?

(Reply to this) (Parent)(Thread)(Expand)

Re: /?s2id=xxxx doesn't work - [info]likeablerodent, 2005-01-02 05:54 am UTC (Expand)

[info]renoir_girl
2004-12-16 12:44 pm UTC (link)
question--

Forgive me for being slow to catch on to all of this (and LJ is being such a problem lately that I'm just glad I got to the make-a-comment page... I don't dare try to load all the comments that have already been made--

But are you saying that LJ Friends-page posts could be e-mailed to you, or that an e-mail provider such as Gmail might be able to somehow pick up friendspage posts? Go ahead and laugh at me if you wish, but this is wishful thinking on my part.

(Reply to this) (Thread)(Expand)


[info]tinyjo
2004-12-16 01:38 pm UTC (link)
Well, kind of. RSS is a way of showing your friends posts so that some email readers (like Thunderbird) will treat them as if they were email for you. Or you get get a regular RSS reader (like NetNewsWire) or loads of other options.

If you want to get your friends page posts in something like Gmail, which I don't think does this in general then you can combine this, which tells you how to get an RSS feed of your friends page with this which tells you how to subscribe to get RSS feeds emailed to you at any email address you like.

Hope this makes some sense - I'm a bit tipsy tonight! If not, comment back and I'll try to be a bit more coherent when I'm next at the computer!

(Reply to this) (Parent)

(no subject) - [info]museumfreak, 2006-12-02 08:47 pm UTC (Expand)
Works with Safari 2.0
[info]quecojones
2005-01-19 12:28 am UTC (link)
I'm running Tiger (Mac OS X 10.4 pre-release build 8A323) and Safari 2.0 (build 172... I think) and this worked. I didn't even have to add the &auth=digest to get to my friends' protected entries (it seems that Safari just grabs the necessary information from the keychain). :D

The only thing is that the entries appear a bit differently than what I'm used to seeing when I view the RSS feed of an individual friend's journal.

No matter though. I love this. Many thanks! :)

(Reply to this)


[info]davedash
2005-01-27 12:01 am UTC (link)
I'm getting some wierdness when it comes to viewing polls that people post using lj's poll system... the html gets formatted funny and ehtml isn't very helpful there. Any help?

http://www.livejournal.com/users/davedash/friends/?s2id=5406330

and look for some of the polls and you can see what I mean.

(Reply to this) (Thread)


[info]tinyjo
2005-02-03 10:05 am UTC (link)
Hmmm. I'm not having any problems with polls on my FP except that clicking the vote button opens a browser window with the voting options to fill in again (I think this is a challenge/response issue and there's no way round it). Can you describe the problem a bit more clearly, or take a screenshot? What RSS feeder are you using to view the feed?

(Reply to this) (Parent)(Thread)(Expand)

(no subject) - [info]davedash, 2005-02-03 03:27 pm UTC (Expand)

[info]chanchal
2005-02-13 09:39 am UTC (link)
stupid question but where do I find out my s2id?

(Reply to this) (Thread)


[info]museumfreak
2006-12-02 08:49 pm UTC (link)
Advanced Customization area --> My Styles.

although you should be able to get it during creation.

(Reply to this) (Parent)


[info]judas_river
2005-02-19 04:47 pm UTC (link)
Hey, I know this is a bit late, but anyway... Is there a way I can subscribe to a single journal with this, instead of my friends page?

(Reply to this) (Thread)


[info]judas_river
2005-02-19 04:52 pm UTC (link)
*grin* Nevermind, I just created a custom friends group with only that journal in it, and subscribed to that ;)

Another question, though: What about comments? As new comments are added to a post, will the feed show that, or will it only show whatever was on the post at the time it was downloaded?

(Reply to this) (Parent)(Thread)(Expand)

(no subject) - [info]tinyjo, 2005-02-20 04:45 pm UTC (Expand)
(no subject) - [info]judas_river, 2005-02-21 04:20 am UTC (Expand)
(no subject) - [info]dda, 2005-03-03 06:44 am UTC (Expand)

[info]iamrobertsworry
2005-02-23 12:21 am UTC (link)
When I make My style is there anyway that I can get it to make Reply to and Read this Thread links at the bottom of the page? Could you just point me to a Sytle that you used. I looked at making a style and realized that it was over my head. If I see a really simple style I will beable to build upon it.

(Reply to this)

S2 broke?
[info]ozone42
2005-11-22 07:31 pm UTC (link)
I've tried this layer on my lj

http://www.livejournal.com/users/ozone42/friends/?s2id=1081198

But s2 is breaking it, it refuses to output the xml header line. I've tried tricking it by breaking it up into seperate output lines to no avail. Have they put a stop to this?

(Reply to this) (Thread)

Re: S2 broke?
[info]iamrobertsworry
2006-02-09 08:54 pm UTC (link)
I am now also having a problem with it being seen as a rss feed. Any ideas?

(Reply to this) (Parent)(Thread)(Expand)

Re: S2 broke? - [info]ozone42, 2006-02-09 10:43 pm UTC (Expand)
Re: S2 broke? - [info]dda, 2006-02-10 12:17 am UTC (Expand)
Re: S2 broke? - [info]tinyjo, 2006-02-22 01:24 pm UTC (Expand)
Re: S2 broke? - [info]mikz, 2009-01-28 11:15 pm UTC (Expand)
Re: S2 broke? - [info]tinyjo, 2006-02-22 01:24 pm UTC (Expand)
Re: S2 broke? - [info]eviljohn, 2006-07-11 04:06 pm UTC (Expand)
Re: S2 broke? - [info]tinyjo, 2006-07-11 04:23 pm UTC (Expand)
Re: S2 broke? - [info]eviljohn, 2006-07-11 04:30 pm UTC (Expand)

[info]markadm
2006-02-12 09:38 am UTC (link)
Thanks so much for this!
Finally, instructions that aren't mud!

(Reply to this) (Thread)


[info]tinyjo
2006-02-22 01:23 pm UTC (link)
Hey, no problem :)

(Reply to this) (Parent)

Re: S2 broke?
[info]dda
2006-02-24 02:25 am UTC (link)
Yes, I finally was given a list of rel attributes that would pass muster. You can read the whole support thread here.

Note that the rel attribute has to be lower case for this to work!


Amazing. Just amazing.

(Reply to this) (Thread)

Re: S2 broke?
[info]tinyjo
2006-02-24 12:41 pm UTC (link)
Thanks very much for that list! Very handy.

(Reply to this) (Parent)


[info]red43
2006-03-02 12:59 pm UTC (link)
I found a link to this in another journal, and it seems like the perfect solution to what I want.

However, when I try to compile the layer, I get
S2 Compiler Output at Thu Mar 2 12:58:12 2006
Error compiling layer:

Compile error: line 10, column 1: Can't declare usage of non-existent property
S2::NodeProperty, S2/NodeProperty.pm, 90
S2::Checker, S2/Checker.pm, 343
S2::Compiler, S2/Compiler.pm, 34


Context

6: layerinfo author_email="jo AT tinyjo DOT net";
7: layerinfo source_viewable=1;
8:
9: #inherited properties
10: property use page_recent_items;
11: property use page_friends_items;
12: property use IMGDIR;
13:
14: # number of items to show on the page

Any ideas?

(Reply to this) (Thread)


[info]tinyjo
2006-03-05 05:57 pm UTC (link)
Hmmm. It doesn't do that to me so I'm a bit mysified. You created a new layout layer, right?

(Reply to this) (Parent)(Thread)(Expand)

(no subject) - [info]red43, 2006-03-06 12:24 pm UTC (Expand)
(no subject) - [info]tinyjo, 2006-03-06 01:12 pm UTC (Expand)

[info]itjustsaysnow
2006-06-25 11:53 pm UTC (link)
omg you are so my hero!!!! After d/l great news and adding all 250+ friends and communities manually the effect STILL wasn't what I wanted. I just wanted to be able to read in my email client!!! This is AWESOME! Thanks SO MUCH!!!

(Reply to this) (Thread)


[info]itjustsaysnow
2006-06-26 12:05 am UTC (link)
Darn. I got excited too quickly: when I get to one that's flocked it's showing up in the folder BUT it's giving me a "forbidden: You don't have permission to access /149193.html on this server" message. Any ideas?

(Reply to this) (Parent)(Thread)(Expand)

(no subject) - [info]tinyjo, 2006-06-26 09:02 am UTC (Expand)
(no subject) - [info]itjustsaysnow, 2006-06-30 04:09 pm UTC (Expand)
(no subject) - [info]tinyjo, 2006-06-30 07:18 pm UTC (Expand)
(no subject) - [info]itjustsaysnow, 2006-07-17 08:08 pm UTC (Expand)

[info]corvidae
2007-08-29 04:02 am UTC (link)
Ahh, awesome. I was looking for something like this. Since the last person's tutorial seemed to have disappeared when the images they posted did, I also made an entry detailing a bit more how to set this up. Thank you much. :)

(Reply to this) (Thread)


[info]mikz
2009-01-28 08:07 pm UTC (link)
Thanks! This solved the problem I was having.

(Reply to this) (Parent)


[info]da_lj
2007-11-26 11:49 am UTC (link)
This is wonderful; thanks for putting it together.

I've made a step-by-step guide which doesn't rely on understanding S2, layers, and styles. I'd appreciate if anyone had revisions or thoughts on improvements; since I don't necessarily understand the best way to do it myself (go easy on me; I just read the FAQs for the first time half an hour ago!)




Step-by-step guide for making an RSS feed of your friends page including protected entries

You will need a paid account to set this up.
You will need an RSS reader that supports "&auth=digest". I know thunderbird and firefox 2.0 both do.

Steps:
Create a new "S2 Layer":
open http://www.livejournal.com/customize/advanced/layersource.bml?id=2870759&fmt=html
select all, and copy to clipboard.
open http://www.livejournal.com/customize/advanced/layers.bml
Near the bottom of that page: "Create Top Level Layer". Type = "Layout." Hit "Create."
It will show up near the top of the list of layers; probably right under "Child of Layer 1: LJ S2 Core v1".
If you can't tell which of the entries is the one you just created, hit it again, and the second layer will show up in the same place. Delete the second one. :)
Click "edit". Select all the text on the right-hand side. Delete. Paste from clipboard.
click "save and compile".
back-arrow the browser to "Your Layers". click the "[Your Styles]" link near the top.
under "create styles", fill in name "rss". click "create".
It will give you style options. The last choice should be "Layout". Scroll down to the bottom, and you should see "RSS". Choose it, choose "Change" button.
Save Changes.

You'll be back at "Your Styles". The list will include "rss". The URL there will be the one you want; in the format: http://yourname.livejournal.com/?s2id=19387903 .

Link to that; it will generate a RSS feed (which, if you're using firefox 2, will allow you to subscribe to a live bookmark right there).

Edit that URL to add: &auth=digest

Re-link to that URL. It will ask you for your username and password (stored in your RSS reader). When that's done, you'll have a RSS feed with protected entries.
You're done!

Edited at 2007-11-26 12:05 pm UTC

(Reply to this) (Thread)


[info]the_sweet
2009-02-03 07:30 am UTC (link)
This was very helpful, except the RSS feed it created was of MY journal, not of my friends' page. It DID grab the protected entries, which is a start, but am I missing something?

(Reply to this) (Parent)(Thread)(Expand)

(no subject) - [info]tinyjo, 2009-02-03 06:29 pm UTC (Expand)
(no subject) - [info]the_sweet, 2009-02-03 11:13 pm UTC (Expand)

Page 1 of 2
<<[1] [2] >>

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…