Forum: Ruby on Rails Youtube html extraction

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
19eb75164135659a8fae98101b1c250e?d=identicon&s=25 Arun Kumar (arun_nss)
on 2009-03-16 10:24
I'm building an application using open-uri and hpricot for html contents
of a web page. The problem is when i enter the url of youtube
ie.'' an error is shown stating:

/usr/lib/ruby/1.8/open-uri.rb:277:in `open_http': 400 Bad Request
  from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
  from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
  from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
  from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
  from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
  from /usr/lib/ruby/1.8/open-uri.rb:518:in `open'
  from /usr/lib/ruby/1.8/open-uri.rb:30:in `open'
  from htmlParse.rb:32

I dont know why it is shown like this. I can get the data of other url's
except this one. Can anybody please help. It is urgent.

Arun Kumar
This topic is locked and can not be replied to.