export_comments.bml

Feb 08, 2009 00:47

I have few questions about export_comments.bml.
  1. Metadata should be cached but can be modified. Should I perform full update of metadata periodically? Does that mean that I shouldn't do this too often?
  2. The pseudocode for get=comment_body says: "if nothing was returned". What does "nothing" actually mean? XML with only maxid?
  3. "startid+1000 < maxid ( Read more... )

client: export, client

Leave a comment

Comments 2

pne February 8 2009, 13:19:14 UTC
Should I run download_comments with the same startid (i.e. repeat the same request)?

No, with startid+1000.

Where 1000 comes from?

Maximum number of comments returned at once, if I recall correctly.

So each time you call it, you get a chunk of 1000 comments starting at startid.

So if there are, say, 4321 comments available, you'd call it five times: with startid=0, 1000, 2000, 3000, 4000 (and get 1000, 1000, 1000, 1000, 321 comments in response).

Reply

forever_old February 8 2009, 16:03:43 UTC
Thanks!

So AFAIU if I have 4321 comments. And first 1000 comments are deleted my first response (startid=0) will be empty.

("if nothing was returned, and startid+1000 < maxid from metadata, call download_comments again")

Reply


Leave a comment

Up