?

Log in

No account? Create an account
Comments via XMLRPC? - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

Comments via XMLRPC? [Nov. 3rd, 2005|04:17 pm]
LiveJournal Client Discussions

lj_clients

[simsong]
Hi. I've been trying to figure out how to read comments to postings using the LJ XMLRPC. I just can't figure it out. Does anybody have sample code?

Right now I'm trying to grab the URL and parsing it. That works most of the time, but it doesn't work with comments to entries that are friends-only. When I hit one of those, I throw up my hands .I know that there is a way to send through the LJ Cookie ,but I can't figure out how to make that, either.

So help on either would be very much appreciated!
linkReply

Comments:
From: cellophane01
2005-11-09 06:22 pm (UTC)
The client interface is perfect the way it is. New features would ruin it.
(Reply) (Thread)
[User Picture]From: jdstroy
2005-11-10 10:56 am (UTC)
;_; But isn't that why it's XML?

I should go and make my own version of LiveJournal with extensions. Maybe it'll get merged with the official LJ.
(Reply) (Parent) (Thread)
(Deleted comment)
[User Picture]From: jdstroy
2005-11-10 11:34 pm (UTC)
XML comment was in reference to "extensible," as in "eXtensible Markup Language." Easy to modify, extend, or add "new features," hopefully without breaking anything.

I might be interested in your LJCode project, but I'm mainly a Java (and thus JSP) developer with some experience in PHP, and very little experience with Perl (which is what LJ uses). (I also know the usual web-stuff like XML, (X|D)HTML, JavaScript, VB, etc.) So that means that if I do any serious work with the LJ code, it'll probably have to be re-written from scratch in Java.
(Reply) (Parent) (Thread)
(Deleted comment)
[User Picture]From: jdstroy
2005-11-11 06:58 pm (UTC)
I was referring to this instead of comparing /interface/xml-rpc to /interface/flat. I'm not suggesting a change in behavior, but rather, a new method for retrieving comments (as XML), which, I believe, might be a little more efficient than parsing a page that has to be constructed--wouldn't you agree?

I kinda expected an answer like that. ;) Which is why I want to make my own JSP-based weblog.
(Reply) (Parent) (Thread)
[User Picture]From: jdstroy
2005-11-10 03:34 am (UTC)
I don't think that LJ's XMLRPC supports comments... if it does, I'm in for a big shock. Skewer me if I'm wrong: http://www.livejournal.com/doc/server/ljp.csp.xml-rpc.protocol.html.

I don't see any method for it.
(Reply) (Thread)
[User Picture]From: simsong
2005-11-10 08:57 am (UTC)
Darn. Then I do need to keep screen-scraping.

Do you know of an easy way to make up the auth cookies to send to the server? My screen scraping works for unprotected entries, but not for protected ones that require authentication.
(Reply) (Parent) (Thread)
[User Picture]From: jdstroy
2005-11-10 10:53 am (UTC)
Yeah, unfortunately. I was hoping to make a new interface for LJ based on XMLRPC on another site, but the comments interface... well, you know.

I think that the documents for LiveJournal's XML-RPC has a method for making cookies: sessiongenerate. (Corresponding function for logout: sessionexpire.) Both are on the TOC page (above). Hopefully, you're not doing all this manually... =D

Since you're working with the comments, you might be interested in the Export Comments page. You can find the details about it here. Good luck, and tell me how it goes.
(Reply) (Parent) (Thread)
[User Picture]From: jdstroy
2005-11-10 10:57 am (UTC)
OT: By the way, nice name. =)
(Reply) (Parent) (Thread)
[User Picture]From: simsong
2005-11-10 11:10 am (UTC)
"nice name?"
(Reply) (Parent) (Thread)
[User Picture]From: jdstroy
2005-11-10 11:25 pm (UTC)
"Simson Garfinkel"
(Reply) (Parent) (Thread)
[User Picture]From: simsong
2006-01-22 01:38 pm (UTC)

updates to XMLRPC download

Hi. Since you commented on my posting last, it seems that there is now an XML way to download comments. It's documented at:

http://www.livejournal.com/developer/exporting.bml

(I found this out when I was screen-scraping; there is now a little comment in the code telling you not to screen-scrape.)

But I can't find an XMLRPC interface for the export_comments feature. Do you know how to do it or where the doc is?

(Reply) (Parent) (Thread)
[User Picture]From: jdstroy
2006-01-22 05:49 pm (UTC)

Re: updates to XMLRPC download

Hello,

I have this funny feeling that I've seen this page before... *coughcough*

There isn't an XMLRPC way to do this--yet! Care to make one?
(Reply) (Parent) (Thread)
[User Picture]From: simsong
2006-01-22 05:57 pm (UTC)

Re: updates to XMLRPC download

I don't know how to make an XMLRPC server for the livejournal.com webserver....

But I am now making the cookie automatically, rather than stealing a cookie using tcpdump...

(Reply) (Parent) (Thread)
[User Picture]From: jdstroy
2006-01-22 06:03 pm (UTC)

Re: updates to XMLRPC download

LJcode.org might be helpful... but that's a pretty big task, isn't it?
(Reply) (Parent) (Thread)