my code is this
video_arr = ["o9_5dnC0iLA","h4yWRY2Yg3Q","jnia6bw3eeo","cAPpaM2Oszc"]
video_arr.ech do |video_id|
xml = open("http://gdata.youtube.com/feeds/api/videos/#{video_id}/comments").read
comments_hash = Nori.parse(xml)
if !comments_hash['feed']['entry'].blank?
comments_hash['feed']['entry'].each { |entry|
puts entry['content']
}
end
end
i have 100000 video ids in the video_arr array. Clearly the above code will take a lot of time as I am sending requests on by one. Is there any way of fetching the response of comments in a single request or in batches. Thx in advance