WWW deprecation notice in Mechanize

I’m a Ruby newbie trying to use scrubyt to extract text from a site. I
have mechanize 1.0.0 installed and keep getting the following
deprecation notice. Unfortunately, I’m not sure how to switch the WWW
to mechanize, as it requests. I’m not actually calling mechanize
anywhere in the code either. Many thanks in advance.

Roger

!!! DEPRECATION NOTICE !!!
The WWW constant is deprecated, please switch to the new top-level
Mechanize
constant. WWW will be removed in Mechanize version 2.0

You’ve referenced the WWW constant from /opt/local/lib/ruby/gems/1.8/
gems/scrubber-scrubyt-0.4.30/lib/scrubyt/core/navigation/agents/
mechanize.rb:17:in `included’, please
switch the “WWW” to “Mechanize”. Thanks!

Sincerely,

Pew Pew Pew

On Feb 24, 2010, at 21:15 , roger99999 wrote:

I’m a Ruby newbie trying to use scrubyt to extract text from a site. I
have mechanize 1.0.0 installed and keep getting the following
deprecation notice. Unfortunately, I’m not sure how to switch the WWW
to mechanize, as it requests. I’m not actually calling mechanize
anywhere in the code either. Many thanks in advance.

First off, stop using scrubyt and use mechanize directly. That takes
care of the biggest issue, you’re using something that provides little
value to begin with. Mechanize is easy. Try it out.

On Feb 25, 1:30 am, Ryan D. [email protected] wrote:

On Feb 24, 2010, at 21:15 , roger99999 wrote:

I’m a Ruby newbie trying to use scrubyt to extract text from a site. I
have mechanize 1.0.0 installed and keep getting the following
deprecation notice. Unfortunately, I’m not sure how to switch the WWW
to mechanize, as it requests. I’m not actually calling mechanize
anywhere in the code either. Many thanks in advance.

First off, stop using scrubyt and use mechanize directly. That takes care of the biggest issue, you’re using something that provides little value to begin with. Mechanize is easy. Try it out.

Thanks - will give that a try. Various sites made it sound like there
is a great value added with scrubyt, so that’s where I started.