# WWW deprecation notice in Mechanize

**URL:** <https://www.ruby-forum.com/t/www-deprecation-notice-in-mechanize/184104>\
**Category:** Ruby\
**Created:** [February 25, 2010, 6:15am UTC](https://www.ruby-forum.com/t/www-deprecation-notice-in-mechanize/184104 "2010-02-25T06:15:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roger99999](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/0ea827/32.png) [@roger99999](https://www.ruby-forum.com/u/roger99999)\
**Post date:** [February 25, 2010, 6:15am UTC](https://www.ruby-forum.com/t/www-deprecation-notice-in-mechanize/184104/1 "2010-02-25T06:15:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![roger99999](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/0ea827/32.png) [@roger99999](https://www.ruby-forum.com/u/roger99999)\
**Post date:** [February 25, 2010, 10:31am UTC](https://www.ruby-forum.com/t/www-deprecation-notice-in-mechanize/184104/2 "2010-02-25T10:31:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![roger99999](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/0ea827/32.png) [@roger99999](https://www.ruby-forum.com/u/roger99999)\
**Post date:** [February 25, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/www-deprecation-notice-in-mechanize/184104/3 "2010-02-25T20:26:44Z")

</div>

On Feb 25, 1:30 am, Ryan D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.
