Log in

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

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

[Jan. 5th, 2003|03:23 pm]
LiveJournal Client Discussions


Hey all,

I'm new to this community. Actually, I'm new to LJ client programming in general, so I apologize if this is a rookie question. :-)

I'm trying to write some Perl code that acts as a minimal client for the purposes of downloading and analyzing "friends" connections between users. It is using XMLRPC::Lite to make XML-RPC calls.

My question: Is it possible to use LJ.XMLRPC.getfriends to retrieve the friends list of any LJ user? Or is it only intended for retrieving the friends of the currently-logged-in user? I ask because I appear to be getting "Invalid password" errors if I try to get my own friends list by calling LJ.XMLRPC.getfriends first thing. (And I'm afraid of hammering the server too much by thrashing around and experimenting.) :-)

From: evan
2003-01-05 05:56 pm (UTC)
AFAIK it only gets the friends of the logged-in user. I know some other tools manage to read friends lists (google for "livejournal joule", for example) but IIRC Brad added an extra protocol mode for them.

I wanted to do some similar analyses and I looked over the LJ code but I couldn't find what Brad had added. You may want to mail him directly, but other than that I don't know what to say...
(Reply) (Thread)
[User Picture]From: l2g
2003-01-05 08:30 pm (UTC)


I found it. The magic script is /friends/graph.bml. It even generates a Dot file, which is what I wanted to end up with in the first place. Groovy. :-)
(Reply) (Parent) (Thread)