Scrap Video URL

Hi All,

  I want to know how to scrap video url's based on some conditions
like comments, share etc...
I used Net::HTTP succesfully scraped but not on the conditions. Please
help me out...

Thanking You
Santosh Mohanty

Hi All,

I want to know how to scrap video url's based on some conditions
like comments, share etc...
I used Net::HTTP succesfully scraped but not on the conditions. Please
help me out...

You're going to need to do this in two passes. First pass grabs the HTML for the page containing the video, then you rip through that with Nokogiri or HPricot, looking for some threshold like >n instances of <div class="comment"> or whatever is appropriate for that HTML. If the threshold is passed, then you ferret out the link to the movie and pull it down in a separate request.

Walter