Note that there are some explanatory texts on larger screens.

plurals
  1. POin `escape': undefined method `gsub' for #<URI::HTTP:0x007fa07cb01e08> (NoMethodError)
    primarykey
    data
    text
    <p>Hi I am trying to scrap a web page "take the links" go to that links and "to scrap it" too.</p> <pre><code>require 'rubygems' require 'scrapi' require 'uri' Scraper::Base.parser :html_parser web = "http://......" def sub_web(linksubweb) uri = URI.parse(URI.encode(linksubweb)) end scraper = Scraper.define do array :items process "div.mozaique&gt;div", :items =&gt; Scraper.define { process "p&gt;a", :title =&gt; :text process "div.thumb&gt;a", :link =&gt; "@href" result :title, :link, } result :items end uri = URI.parse(URI.encode(web)) scraper.scrape(uri).each do |pag| link_full = uri + pag.link.to_str puts pag.title sub_web(link_full) puts end </code></pre> <p>And I have the following error</p> <pre><code>e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/sss/web/app/views/admin/topics/webconector.rb Title 1 http://www.mydomain.com/user34/top5 /Users/sss/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/uri/common.rb:304:in `escape': undefined method `gsub' for #&lt;URI::HTTP:0x007fa07cb01e08&gt; (NoMethodError) from /Users/sss/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/uri/common.rb:623:in `escape' from ../app/views/admin/topics/conectaweb.rb:11:in `sub_web' from ../app/views/admin/topics/conectaweb.rb:34:in `block in &lt;top (required)&gt;' from ../views/admin/topics/conectaweb.rb:29:in `each' from ../app/views/admin/topics/conectaweb.rb:29:in `&lt;top (required)&gt;' from -e:1:in `load' from -e:1:in `&lt;main&gt;' Process finished with exit code 1 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload