Thomas (boggyb) wrote,

  • Mood:
  • Music:
Oh dear, I've just had a silly idea for how to make an off-site friends page equivalent that actually has the full metadata (the RSS feed lacks some of it) and LJ-tags available:

Write a custom S2 style to display a journal or a single entry in a nicely parseable format. You could use the Lynx theme for this with a little effort, but having your own S2 style means you don't have to fix your parser every time LJ update their site. On the flip side, you do have to update your S2 style every time LJ adds some new feature... but that's only if you actually care about their changes.

Ping the checkfriends API to determine when someone's made a post. When that claims there're new posts, grab the friends page RSS feed using the auth parameter to log in as yourself (so your scripts or whatever can see any friends-only posts that are on your friends page). Parse that to work out which posts are new. Then grab those posts, but add the s2id parameter to the URL to make them appear using your new S2 style. Parse those into whatever style you want.

Wrap all this up in a suitably shiny bunch of PHP or whatever, and hey presto - you now have a friends page that looks exactly how you want it to.
Tags: livejournal

  • Alleluia! Christ is risen!

    He is risen indeed, Alleluia! This has been something of a strange Easter. It's the first year I've not gone back to Horsham (which was already…

  • Mini-update

    A random moment in the life of boggyb... At church music practice this afternoon (I turn up when I'm running the projection for a…

  • Lent photography, day 7

    News about him spread quickly over the whole region of Galilee. Mark 1:28

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.