S
Steve H.
Hello all, I'm using open-uri combined with hpricot to make a basic
web crawler that scrapes for different links that I need. It seems to
be working perfectly, but I have encountered the following bug when
this type of link is encountered:
irb(main):015:0> URI.parse('http://hello.com/a.php?%1')
URI::InvalidURIError: bad URI(is not URI?): http://hello.com/a.php?%1
from c:/ruby/lib/ruby/1.8/uri/common.rb:436:in `split'
from c:/ruby/lib/ruby/1.8/uri/common.rb:485:in `parse'
from (irb):15
Can anyone illuminate why this is a problem? Thanks!
web crawler that scrapes for different links that I need. It seems to
be working perfectly, but I have encountered the following bug when
this type of link is encountered:
irb(main):015:0> URI.parse('http://hello.com/a.php?%1')
URI::InvalidURIError: bad URI(is not URI?): http://hello.com/a.php?%1
from c:/ruby/lib/ruby/1.8/uri/common.rb:436:in `split'
from c:/ruby/lib/ruby/1.8/uri/common.rb:485:in `parse'
from (irb):15
Can anyone illuminate why this is a problem? Thanks!