LJ Client/Server protocol question

May 28, 2010 08:54

I wonder if I can use "getevents" method to access posts of users other than myself?
If yes, please point me to a relevant example.

client: entries, client

Leave a comment

andy May 28 2010, 16:18:46 UTC
No.

Reply

pstas May 28 2010, 16:35:50 UTC
Thank you! Please advice what would be the easiest way to find when the post (not mine) was submitted?

Reply

andy May 28 2010, 17:38:28 UTC
Your wording here is not too specific, but if I'm understanding correctly, you can subscribe to the journal the entry in question would be posted to and receive a notification via inbox/email/stuff.

Reply

pstas May 28 2010, 18:01:21 UTC
Sorry, let me expand my question:

I have an address of LJ post (e.g. http://vlnv.livejournal.com/15531.html). How can I *programmatically* extract the date when it was posted?

I could download the post and search its HTML for the date, but it seems that different journals use different formats, so this solution seems complex. Would you suggest a better answer?

Reply

andy May 28 2010, 18:14:03 UTC
1). parse http://vlnv.livejournal.com/15531.html?format=light

2). try to find it in an RSS/Atom feed, both of which should have "date" metadata

Reply

pstas May 28 2010, 18:21:36 UTC
Thanks, let me play with your suggestions.

Reply

pne May 29 2010, 19:28:47 UTC
Also, note that this will probably only tell you the time that the user chose -- not the server time when it was submitted. (Users can choose a date in the past or the future for their posts, of course.)

Reply

pstas May 29 2010, 19:39:37 UTC
Good point! Thank you.

Reply

one more question pstas June 10 2010, 18:20:11 UTC
Andy, just in case you have a spare minute. To access certain pages the way you recommend I need to authenticate myself. Mathematica doesn't support cookies so I wonder if I can do something like this:

http://vlnv.livejournal.com/15531.html?format=light&user=pstas&password=zzz

Reply

andy June 10 2010, 18:24:15 UTC
To the best of my knowledge, no, you can't.

Reply

pstas June 10 2010, 18:37:43 UTC
Thanks!

Reply


Leave a comment

Up