Log in

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

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

login.bml [Oct. 25th, 2004|05:31 pm]
LiveJournal Client Discussions


For my client, I need (among other things) to be able to read protected post in other journal than mine (i.e. friend of mine made a specific friend-only post visible to me, I want to read it using client). I could not find corresponding XML-RPC method, so I've decided to use simple HTTP.
I did not want to reuse IE/Mozilla browser components, and started simple python script. I found that login.bml sends (md5(chal + md5(password)) as response, username in clear and empty password. So far so good. But I always get "user not found" error, which, I think, returned when there is a spelling error in username. I checked the headers and could not find whats wrong.
Can somebody help me ?

Update: resolved. API supports reading from shared journals. Good enough, at least for now.

[User Picture]From: marksmith
2004-10-25 10:18 pm (UTC)
Please read http://www.livejournal.com/bots/ -- in particular the part that says to use the client protocol and not screen-scrape.

If you are writing a client that is parsing login.bml (instead of using the designed-for-clients sessiongenerate mode) and parsing someone's journal (outside of using their RSS feed directly), that's probably a bad idea.
(Reply) (Thread)
[User Picture]From: dmierkin
2004-10-25 10:29 pm (UTC)
I would love to use client API instead of screen-scrape. I just could not find suitable methods there.
From what I could understand, I can't get specific post (knowing postid, for example, or date) using RSS feed. Please, correct me if I'm wrong.
(Reply) (Parent) (Thread)
[User Picture]From: marksmith
2004-10-25 11:38 pm (UTC)
That's correct; in general, we don't want people scraping posts. :)
(Reply) (Parent) (Thread)
[User Picture]From: vanbeast
2004-10-25 10:25 pm (UTC)
To expand upon what Mark said above, the protocol equivalent of login.bml is sessiongenerate.

That said, it sounds to me like what you're trying to do is basically implement a web browser? You want to be able to view a friends journal while logged in...

You may be better off using an RSS aggregator that supports digest authentication, then simply viewing the friends RSS feed with auth enabled. That'll allow you to show protected posts.
(Reply) (Thread)
From: snej
2004-10-26 12:07 am (UTC)
"it sounds to me like what you're trying to do is basically implement a web browser"

There are advantages to having a special-purpose client for displaying posts. I've done some work along those lines myself. That's not the same as a browser for much the same reason that Outlook (or Apple Mail or Eudora) is not the same as Yahoo Mail.

Using RSS/Atom is probably the best that can be done given the current state of LiveJournal. It's not a real solution, though, as you lose all the LJ-specific metadata like mood/music/usericon/protection.
(Reply) (Parent) (Thread)