#33 new
cyberkid81

paging returns an error using next_page - posting workaround

Reported by cyberkid81 | May 9th, 2010 @ 12:54 AM

When using the next_page function, this error is showing up and the program exits:

 /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.4.1/lib/scrubyt/core/navigation/fetch_action.rb:39:in `restore_host_name': uninitialized class variable @@original_host_name in Scrubyt::FetchAction (NameError)

I modified this file: /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.4.1/lib/scrubyt/core/navigation/fetch_action.rb

I set @@original_host_name to nil and saved. That's it. It appears fixed. See the code segment below.

  module FetchAction
   @@current_doc_url = nil
   @@current_doc_protocol = nil
   @@base_dir = nil
   @@host_name = nil
   @@history = []
   @@current_form = nil
   @@original_host_name = nil #add this line to fix next_page error

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A simple to learn and use, yet powerful web scraping toolkit written in Ruby.

People watching this ticket

Pages