Log in

No account? Create an account
LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

PHP and interests lists [Jan. 5th, 2007|03:25 pm]
LiveJournal Client Discussions


I'm currently writing some PHP that needs to fetch and parse a specific user's interests list, looking for a specific interest. I'm happy to scrape what I'm looking for out of the HTML of the userinfo page if needs be, but is there a 'better' way of doing this? An XML version of the interests list would be ideal for my purposes.

It's just that I don't want to a) spend ages writing code to sift through the HTML of the userinfo page and b) hammer LJ by transferring the whole userinfo page every time.

Any thoughts would be appreciated :)

[User Picture]From: breyten
2007-01-05 03:43 pm (UTC)
(Reply) (Thread)
[User Picture]From: synthclarion
2007-01-05 08:11 pm (UTC)
lovely jubbly.

it only needs to dump interests once per user (an md5 token is given by the webapp, user puts it in their interests, interests are read and if there's a match the user on the site is linked to the user on lj) but not only does this make my life easier (fopen and fgets for the win) but means lj doesn't have to render the userinfo.

thankyou :)
(Reply) (Parent) (Thread)
[User Picture]From: thgintaetal
2007-01-05 09:47 pm (UTC)
If you're trying to authenticate a user, wouldn't using OpenID be easier for the user?
(Reply) (Parent) (Thread)
[User Picture]From: synthclarion
2007-01-05 10:47 pm (UTC)
Significantly. I didn't think of that.

(Reply) (Parent) (Thread)