From listaccount at e-tobi.net Thu Feb 4 18:44:25 2010 From: listaccount at e-tobi.net (Tobi) Date: Fri, 05 Feb 2010 00:44:25 +0100 Subject: [Mechanize-users] Mechanize Cheat Sheet Message-ID: <4B6B5BD9.6050204@e-tobi.net> Hi! For an article I wrote recently, I've created a cheat sheet for Mechanize. It's Creative Commons licensed and can be downloaded here: http://e-tobi.net/blog/2010/02/05/ruby-mechanize-cheat-sheet http://www.heise.de/ct/projekte/machmit/webautomatisieren/wiki/RubyMechanize SVG: http://rubyurl.com/YEMH PDF: http://rubyurl.com/dSG0 If there's something important missing or you find a bug, feel free to drop me a mail and I'll try to update the cheat sheet. bye, Tobias From jeremywoertink at gmail.com Thu Feb 4 19:03:27 2010 From: jeremywoertink at gmail.com (jeremywoertink at gmail.com) Date: Thu, 4 Feb 2010 16:03:27 -0800 Subject: [Mechanize-users] Mechanize Cheat Sheet In-Reply-To: <4B6B5BD9.6050204@e-tobi.net> References: <4B6B5BD9.6050204@e-tobi.net> Message-ID: <46418841-DE3F-497D-9F0A-5326DE1A99EE@gmail.com> Sweet cheat sheet :) first thing I noticed was the quotes around "Friendly Mechanize Script" Still looking over it, but it's helpful. Thanks! On Feb 4, 2010, at 3:44 PM, Tobi wrote: > Hi! > > For an article I wrote recently, I've created a cheat sheet for > Mechanize. > It's Creative Commons licensed and can be downloaded here: > > http://e-tobi.net/blog/2010/02/05/ruby-mechanize-cheat-sheet > http://www.heise.de/ct/projekte/machmit/webautomatisieren/wiki/RubyMechanize > > SVG: http://rubyurl.com/YEMH > PDF: http://rubyurl.com/dSG0 > > If there's something important missing or you find a bug, feel free to > drop me a mail and I'll try to update the cheat sheet. > > bye, > > Tobias > > > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users From radek.simcik at gmail.com Thu Feb 4 19:06:10 2010 From: radek.simcik at gmail.com (Radek Simcik) Date: Fri, 5 Feb 2010 11:06:10 +1100 Subject: [Mechanize-users] Mechanize Cheat Sheet In-Reply-To: <4B6B5BD9.6050204@e-tobi.net> References: <4B6B5BD9.6050204@e-tobi.net> Message-ID: Hi Tobias Great work! I wish I had had your sheet two weeks ago :-) What about adding new field to the form? form.add_field!('new_field','value) And something about cookies? Thank you again Radek On Fri, Feb 5, 2010 at 10:44 AM, Tobi wrote: > Hi! > > For an article I wrote recently, I've created a cheat sheet for Mechanize. > It's Creative Commons licensed and can be downloaded here: > > http://e-tobi.net/blog/2010/02/05/ruby-mechanize-cheat-sheet > > http://www.heise.de/ct/projekte/machmit/webautomatisieren/wiki/RubyMechanize > > SVG: http://rubyurl.com/YEMH > PDF: http://rubyurl.com/dSG0 > > If there's something important missing or you find a bug, feel free to > drop me a mail and I'll try to update the cheat sheet. > > bye, > > Tobias > > > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mr.danielaquino at gmail.com Fri Feb 5 10:33:01 2010 From: mr.danielaquino at gmail.com (Daniel Aquino) Date: Fri, 5 Feb 2010 10:33:01 -0500 Subject: [Mechanize-users] EOFError content-length != page length In-Reply-To: <66f0f93e1001210957j6d6b9567w25a193a48b70ec57@mail.gmail.com> References: <66f0f93e1001121653g6c39f013sa776df229da5bae7@mail.gmail.com> <618c07251001122021m794889b1x888f2af9f23d29fb@mail.gmail.com> <66f0f93e1001122033v7c8f0a7eg2f16449a0f37d6a5@mail.gmail.com> <66f0f93e1001181126q3046c26awe99b442ba8182bd5@mail.gmail.com> <6959e1681001181138w6d4bd43dwcaafb74a58003960@mail.gmail.com> <66f0f93e1001190750w1b28070cid8deeb200583be11@mail.gmail.com> <66f0f93e1001190756p1bfd4d3fw7f8d93b9bf40ea15@mail.gmail.com> <6959e1681001190909s2a7c86cfv21e78990ae5d58ce@mail.gmail.com> <66f0f93e1001190925vc3954c1g7df2e2e1919a4668@mail.gmail.com> <66f0f93e1001210957j6d6b9567w25a193a48b70ec57@mail.gmail.com> Message-ID: <66f0f93e1002050733p24d78bbcg720439603ebca598@mail.gmail.com> does nobody else consider this to be an issue ? On Thu, Jan 21, 2010 at 12:57 PM, Daniel Aquino wrote: > any input ? > > On Tue, Jan 19, 2010 at 12:25 PM, Daniel Aquino > wrote: >> no cause i was wondering about those comments in the code if there was >> a way to override it already... >> >> I'm not sure how you would want to add this to the interface... >> >> perhaps there could be a quirks flag or ignore_content_length flag ? >> >> On Tue, Jan 19, 2010 at 12:09 PM, Aaron Patterson >> wrote: >>> On Tue, Jan 19, 2010 at 7:56 AM, Daniel Aquino >>> wrote: >>>> my problem here is that @response.content_length() = 1142 but total = 1109.... >>>> >>>> again as i said this is a broken http server that I must deal with so >>>> it would be nice to have a way around this type of misconfiguration so >>>> the lib gracefully deals with the situation... I clearly see the >>>> entire page being loaded including the final so if you >>>> ask me mechanize should be good enough to handle this if it expects to >>>> deal with the web ! >>> >>> Cool story! >>> >>> So do you have a patch or tests? >>> >>> -- >>> Aaron Patterson >>> http://tenderlovemaking.com/ >>> _______________________________________________ >>> Mechanize-users mailing list >>> Mechanize-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/mechanize-users >>> >> > From aaron at tenderlovemaking.com Sun Feb 7 02:31:14 2010 From: aaron at tenderlovemaking.com (Aaron Patterson) Date: Sat, 6 Feb 2010 23:31:14 -0800 Subject: [Mechanize-users] [ANN] mechanize 1.0.0 Released Message-ID: <20100207073114.GA3295@higgins.local> mechanize version 1.0.0 has been released! * * The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history. Changes: ### 1.0.0 * New Features: * An optional verb may be passed to Mechanize#get GH #26 * The WWW constant is deprecated. Switch to the top level constant Mechanize * SelectList#option_with and options_with for finding options * Bug Fixes: * Rescue errors from bogus encodings * 7bit content-encoding support. Thanks sporkmonger! GH #2 * Fixed a bug with iconv conversion. Thanks awesomeman! GH #9 * meta redirects outside the head are not followed. GH #13 * Form submissions work with nil page encodings. GH #25 * Fixing default values with serialized cookies. GH #3 * Checkboxes and fields are sorted by page appearance before submitting. #11 -- Aaron Patterson http://tenderlovemaking.com/ From jeremywoertink at gmail.com Mon Feb 8 13:08:07 2010 From: jeremywoertink at gmail.com (Jeremy Woertink) Date: Mon, 8 Feb 2010 10:08:07 -0800 Subject: [Mechanize-users] [ANN] mechanize 1.0.0 Released In-Reply-To: <20100207073114.GA3295@higgins.local> References: <20100207073114.GA3295@higgins.local> Message-ID: <1ea5c3821002081008y5e795dd7xcc3d71faada4cfaf@mail.gmail.com> I just tried to update, and didn't see it. Has this been pushed up yet? On Sat, Feb 6, 2010 at 11:31 PM, Aaron Patterson wrote: > mechanize version 1.0.0 has been released! > > * > * > > The Mechanize library is used for automating interaction with websites. > Mechanize automatically stores and sends cookies, follows redirects, > can follow links, and submit forms. Form fields can be populated and > submitted. Mechanize also keeps track of the sites that you have visited > as > a history. > > Changes: > > ### 1.0.0 > > * New Features: > > * An optional verb may be passed to Mechanize#get GH #26 > * The WWW constant is deprecated. Switch to the top level constant > Mechanize > * SelectList#option_with and options_with for finding options > > * Bug Fixes: > > * Rescue errors from bogus encodings > * 7bit content-encoding support. Thanks sporkmonger! GH #2 > * Fixed a bug with iconv conversion. Thanks awesomeman! GH #9 > * meta redirects outside the head are not followed. GH #13 > * Form submissions work with nil page encodings. GH #25 > * Fixing default values with serialized cookies. GH #3 > * Checkboxes and fields are sorted by page appearance before submitting. > #11 > > -- > Aaron Patterson > http://tenderlovemaking.com/ > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaron.patterson at gmail.com Mon Feb 8 14:19:36 2010 From: aaron.patterson at gmail.com (Aaron Patterson) Date: Mon, 8 Feb 2010 11:19:36 -0800 Subject: [Mechanize-users] [ANN] mechanize 1.0.0 Released In-Reply-To: <1ea5c3821002081008y5e795dd7xcc3d71faada4cfaf@mail.gmail.com> References: <20100207073114.GA3295@higgins.local> <1ea5c3821002081008y5e795dd7xcc3d71faada4cfaf@mail.gmail.com> Message-ID: <6959e1681002081119q436a79c0lc06cee6efbd2af6f@mail.gmail.com> On Mon, Feb 8, 2010 at 10:08 AM, Jeremy Woertink wrote: > I just tried to update, and didn't see it. Has this been pushed up yet? Ugh, looks like it didn't get pushed. I pushed it now: http://gemcutter.org/gems/mechanize -- Aaron Patterson http://tenderlovemaking.com/ From jeremywoertink at gmail.com Mon Feb 8 17:46:24 2010 From: jeremywoertink at gmail.com (jeremywoertink at gmail.com) Date: Mon, 8 Feb 2010 14:46:24 -0800 Subject: [Mechanize-users] [ANN] mechanize 1.0.0 Released In-Reply-To: <6959e1681002081119q436a79c0lc06cee6efbd2af6f@mail.gmail.com> References: <20100207073114.GA3295@higgins.local> <1ea5c3821002081008y5e795dd7xcc3d71faada4cfaf@mail.gmail.com> <6959e1681002081119q436a79c0lc06cee6efbd2af6f@mail.gmail.com> Message-ID: <361ECED5-520F-4D80-981E-97111C724A36@gmail.com> Sweet! Thanks man :) On Feb 8, 2010, at 11:19 AM, Aaron Patterson wrote: > On Mon, Feb 8, 2010 at 10:08 AM, Jeremy Woertink > wrote: >> I just tried to update, and didn't see it. Has this been pushed up >> yet? > > Ugh, looks like it didn't get pushed. I pushed it now: > > http://gemcutter.org/gems/mechanize > > -- > Aaron Patterson > http://tenderlovemaking.com/ > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users From rschoenm at ucsc.edu Fri Feb 19 02:20:33 2010 From: rschoenm at ucsc.edu (Roger Schoenman) Date: Thu, 18 Feb 2010 23:20:33 -0800 Subject: [Mechanize-users] beginner Mechanize question Message-ID: <96AE712C-1F8B-473B-A419-0199081C1AEC@ucsc.edu> I'm just getting my bearings with Mechanize and Scrubyt and am receiving the following message: !!!!! 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/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb: 17:in `included', please switch the "WWW" to "Mechanize". Thanks! Sincerely, Pew Pew Pew I would be happy to switch to the top-level Mechanize constant but have no idea how to do that, or what it means and several hours of searching online have not generated any results. Any help is much appreciated. Thanks Roger From mechanize-mail at zizee.com Fri Feb 19 05:30:31 2010 From: mechanize-mail at zizee.com (Jimmy McGrath) Date: Fri, 19 Feb 2010 20:30:31 +1000 Subject: [Mechanize-users] beginner Mechanize question In-Reply-To: <96AE712C-1F8B-473B-A419-0199081C1AEC@ucsc.edu> References: <96AE712C-1F8B-473B-A419-0199081C1AEC@ucsc.edu> Message-ID: <4B7E6847.70305@zizee.com> I think all that is needed is that where you have "WWW::Mechanize.new" in your code, you just drop the WWW:: and write "Mechanize.new". Anyone else feel free to jump in and correct this if I'm mistaken. -Jimmy Roger Schoenman wrote: > I'm just getting my bearings with Mechanize and Scrubyt and am > receiving the following message: > > !!!!! 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/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb:17:in > `included', please > switch the "WWW" to "Mechanize". Thanks! > > Sincerely, > > Pew Pew Pew > > I would be happy to switch to the top-level Mechanize constant but > have no idea how to do that, or what it means and several hours of > searching online have not generated any results. Any help is much > appreciated. > Thanks > > Roger > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users From jeremywoertink at gmail.com Fri Feb 19 11:08:59 2010 From: jeremywoertink at gmail.com (Jeremy Woertink) Date: Fri, 19 Feb 2010 08:08:59 -0800 Subject: [Mechanize-users] beginner Mechanize question In-Reply-To: <4B7E6847.70305@zizee.com> References: <96AE712C-1F8B-473B-A419-0199081C1AEC@ucsc.edu> <4B7E6847.70305@zizee.com> Message-ID: <1ea5c3821002190808nc43e678rabc0461c63057bd0@mail.gmail.com> nope, that's correct. If you've updated to the latest version of Mechanize, there is no longer a need for the WWW. >From now on, you just do @browser = Mechanize.new ~Jeremy On Fri, Feb 19, 2010 at 2:30 AM, Jimmy McGrath wrote: > I think all that is needed is that where you have "WWW::Mechanize.new" in > your code, you just drop the WWW:: and write "Mechanize.new". > > Anyone else feel free to jump in and correct this if I'm mistaken. > > -Jimmy > > > Roger Schoenman wrote: > >> I'm just getting my bearings with Mechanize and Scrubyt and am receiving >> the following message: >> >> !!!!! 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/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb:17:in >> `included', please >> switch the "WWW" to "Mechanize". Thanks! >> >> Sincerely, >> >> Pew Pew Pew >> >> I would be happy to switch to the top-level Mechanize constant but have no >> idea how to do that, or what it means and several hours of searching online >> have not generated any results. Any help is much appreciated. >> Thanks >> >> Roger >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users >> > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rschoenm at ucsc.edu Fri Feb 19 11:54:13 2010 From: rschoenm at ucsc.edu (Roger Schoenman) Date: Fri, 19 Feb 2010 08:54:13 -0800 Subject: [Mechanize-users] beginner Mechanize question In-Reply-To: <1ea5c3821002190808nc43e678rabc0461c63057bd0@mail.gmail.com> References: <96AE712C-1F8B-473B-A419-0199081C1AEC@ucsc.edu> <4B7E6847.70305@zizee.com> <1ea5c3821002190808nc43e678rabc0461c63057bd0@mail.gmail.com> Message-ID: <4D0B56FB-F117-44D5-AEFC-777990E43EEF@ucsc.edu> Jeremy, Jimmy, Thanks a lot - that makes perfect sense. If I understand correctly, this is happening because I'm using ScrubyT, which depends on Mechanize? Because I haven't actually written "WWW::Mechanize.new" anywhere in my code. All I have is: require 'rubygems' require 'scrubyt' rz_data=Scrubyt::Extractor.define do fetch 'http://rp.pl/search-archiwumrz?query=' select_option 'wszystkie', '100', 'wg dat' fill_textfield 'query', 'aaaa' submit Many thanks again, Roger On Feb 19, 2010, at 8:08 AM, Jeremy Woertink wrote: > nope, that's correct. If you've updated to the latest version of > Mechanize, there is no longer a need for the WWW. > > From now on, you just do > > @browser = Mechanize.new > > > ~Jeremy > > > > On Fri, Feb 19, 2010 at 2:30 AM, Jimmy McGrath > wrote: > I think all that is needed is that where you have > "WWW::Mechanize.new" in your code, you just drop the WWW:: and write > "Mechanize.new". > > Anyone else feel free to jump in and correct this if I'm mistaken. > > -Jimmy > > > Roger Schoenman wrote: > I'm just getting my bearings with Mechanize and Scrubyt and am > receiving the following message: > > !!!!! 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/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb: > 17:in `included', please > switch the "WWW" to "Mechanize". Thanks! > > Sincerely, > > Pew Pew Pew > > I would be happy to switch to the top-level Mechanize constant but > have no idea how to do that, or what it means and several hours of > searching online have not generated any results. Any help is much > appreciated. > Thanks > > Roger > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeremywoertink at gmail.com Fri Feb 19 12:05:23 2010 From: jeremywoertink at gmail.com (Jeremy Woertink) Date: Fri, 19 Feb 2010 09:05:23 -0800 Subject: [Mechanize-users] beginner Mechanize question In-Reply-To: <4D0B56FB-F117-44D5-AEFC-777990E43EEF@ucsc.edu> References: <96AE712C-1F8B-473B-A419-0199081C1AEC@ucsc.edu> <4B7E6847.70305@zizee.com> <1ea5c3821002190808nc43e678rabc0461c63057bd0@mail.gmail.com> <4D0B56FB-F117-44D5-AEFC-777990E43EEF@ucsc.edu> Message-ID: <1ea5c3821002190905k175f3007o13c384718d6df6d3@mail.gmail.com> Yes, that is correct. Is there a newer version of scRubyt? I've never actually used it before, so I'm not sure. You could just always just do a global search and replace :) lol On Fri, Feb 19, 2010 at 8:54 AM, Roger Schoenman wrote: > Jeremy, Jimmy, > > Thanks a lot - that makes perfect sense. If I understand correctly, this is > happening because I'm using ScrubyT, which depends on Mechanize? Because I > haven't actually written "WWW::Mechanize.new" anywhere in my code. All I > have is: > > require 'rubygems' > require 'scrubyt' > rz_data=Scrubyt::Extractor.define do > fetch 'http://rp.pl/search-archiwumrz?query=' > select_option 'wszystkie', '100', 'wg dat' > fill_textfield 'query', 'aaaa' > submit > > > Many thanks again, > > Roger > > > > > On Feb 19, 2010, at 8:08 AM, Jeremy Woertink wrote: > > nope, that's correct. If you've updated to the latest version of Mechanize, > there is no longer a need for the WWW. > > From now on, you just do > > @browser = Mechanize.new > > > ~Jeremy > > > > On Fri, Feb 19, 2010 at 2:30 AM, Jimmy McGrath wrote: > >> I think all that is needed is that where you have "WWW::Mechanize.new" in >> your code, you just drop the WWW:: and write "Mechanize.new". >> >> Anyone else feel free to jump in and correct this if I'm mistaken. >> >> -Jimmy >> >> >> Roger Schoenman wrote: >> >>> I'm just getting my bearings with Mechanize and Scrubyt and am receiving >>> the following message: >>> >>> !!!!! 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/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb:17:in >>> `included', please >>> switch the "WWW" to "Mechanize". Thanks! >>> >>> Sincerely, >>> >>> Pew Pew Pew >>> >>> I would be happy to switch to the top-level Mechanize constant but have >>> no idea how to do that, or what it means and several hours of searching >>> online have not generated any results. Any help is much appreciated. >>> Thanks >>> >>> Roger >>> >>> _______________________________________________ >>> Mechanize-users mailing list >>> Mechanize-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/mechanize-users >>> >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users >> > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > > > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rschoenm at ucsc.edu Fri Feb 19 13:36:43 2010 From: rschoenm at ucsc.edu (Roger Schoenman) Date: Fri, 19 Feb 2010 10:36:43 -0800 Subject: [Mechanize-users] beginner Mechanize question In-Reply-To: <1ea5c3821002190905k175f3007o13c384718d6df6d3@mail.gmail.com> References: <96AE712C-1F8B-473B-A419-0199081C1AEC@ucsc.edu> <4B7E6847.70305@zizee.com> <1ea5c3821002190808nc43e678rabc0461c63057bd0@mail.gmail.com> <4D0B56FB-F117-44D5-AEFC-777990E43EEF@ucsc.edu> <1ea5c3821002190905k175f3007o13c384718d6df6d3@mail.gmail.com> Message-ID: Great. Thanks. I have the latest version of scRubyt, so that's not the problem but I think (hope) I should be able to figure it out from here. Many thanks Roger On Feb 19, 2010, at 9:05 AM, Jeremy Woertink wrote: > Yes, that is correct. Is there a newer version of scRubyt? I've > never actually used it before, so I'm not sure. You could just > always just do a global search and replace :) lol > > > > > > On Fri, Feb 19, 2010 at 8:54 AM, Roger Schoenman > wrote: > Jeremy, Jimmy, > > Thanks a lot - that makes perfect sense. If I understand correctly, > this is happening because I'm using ScrubyT, which depends on > Mechanize? Because I haven't actually written "WWW::Mechanize.new" > anywhere in my code. All I have is: > > require 'rubygems' > require 'scrubyt' > rz_data=Scrubyt::Extractor.define do > fetch 'http://rp.pl/search-archiwumrz?query=' > select_option 'wszystkie', '100', 'wg dat' > fill_textfield 'query', 'aaaa' > submit > > > Many thanks again, > > Roger > > > > > On Feb 19, 2010, at 8:08 AM, Jeremy Woertink wrote: > >> nope, that's correct. If you've updated to the latest version of >> Mechanize, there is no longer a need for the WWW. >> >> From now on, you just do >> >> @browser = Mechanize.new >> >> >> ~Jeremy >> >> >> >> On Fri, Feb 19, 2010 at 2:30 AM, Jimmy McGrath > > wrote: >> I think all that is needed is that where you have >> "WWW::Mechanize.new" in your code, you just drop the WWW:: and >> write "Mechanize.new". >> >> Anyone else feel free to jump in and correct this if I'm mistaken. >> >> -Jimmy >> >> >> Roger Schoenman wrote: >> I'm just getting my bearings with Mechanize and Scrubyt and am >> receiving the following message: >> >> !!!!! 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/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/ >> mechanize.rb:17:in `included', please >> switch the "WWW" to "Mechanize". Thanks! >> >> Sincerely, >> >> Pew Pew Pew >> >> I would be happy to switch to the top-level Mechanize constant but >> have no idea how to do that, or what it means and several hours of >> searching online have not generated any results. Any help is much >> appreciated. >> Thanks >> >> Roger >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users > > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users -------------- next part -------------- An HTML attachment was scrubbed... URL: