On Dec 26, 2011, at 7:54 AM, MUMU wrote: > 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 > > Thanking You > Santosh Mohanty > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

