You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to foug...@googlegroups.com
Hey,
it seems to me that continuations on the reading list are a little bit buggy.
I have a request to get the most recent 500 articles [1] and wrote the response to full500Req.xml. Now I do the same but using 25 requests using continuations and packs of 20 articles [2], also writing the results to files req<ts>.xml. My understanding is that both should return the same articles when submitted at the same point of time.
But this doesn't seem to be the case. I found out about this, because users complaint that articles weren't updated in NewsRob. Further analysis brought to light that the articles in question weren't in the reading list even though they should have.
I wrote a simple script [3] that takes the article ids from the full request on one hand and compares it to the article ids from the 20'er requests on the other hand.
def extract_ids(filename) puts "parsing #{filename}." rows = [] d = REXML::Document.new(File.read filename) d.elements.each('/feed/entry/id') do |id_element| id_value = id_element.text.match(/item\/(.*)/)[1] rows << [id_value] end rows end
# read full 500 rows = extract_ids('full500Req.xml')
# read 20'er packs idx = 0 Dir.glob('req*.xml').sort.each do |fn| ids = extract_ids(fn) ids.each do |id| id_value = id.first rows[idx] << id_value match = rows[idx].first.eql?(id_value) rows[idx] << match idx += 1 end end
# report
puts "---" rows.each_with_index do |row, i| pp row puts "--- #{i+1}" if (i+1) % 20 == 0 end
Mariano Kamp
unread,
Sep 28, 2009, 4:33:27 AM9/28/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to foug...@googlegroups.com
1. I should not forget the attachments. 2. I should not forget the attachments.
3. I should not forget the attachments. 4. I should not forget the attachments. 5. I should not forget the attachments.
[..] 500. I should not forget the attachments.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Friends of the Unofficial Google Reader API
The zip file contains my personal feeds and articles. Although that is
not exactly classified information I don't want them to be public
forever, so I remove the zip file from my server again.
If there is an interest, let me know and I put it again.
Btw. give the response here I meanwhile don't use continuations
anymore, instead I use SAX for parsing.