Displaying 20 results from an estimated 1000 matches similar to: "Variation on my Mechanize MultiSelect Question"
2008 Nov 03
2
Multiple Submit Buttons
Hello.
I have run into a new form that contains multiple submit buttons.
Currently my code for working with forms looks just like this example.
require ''rubygems''
require ''mechanize''
a = WWW::Mechanize.new { |agent|
agent.user_agent_alias = ''Mac Safari''
}
a.get(''http://google.com/'') do |page|
2010 Oct 06
0
can you mechanize.get('http://www.sephora.com/browse/product.jhtml?id=P230234') without error?
hey guys,
i cant seem to mechanize.get(''
http://www.sephora.com/browse/product.jhtml?id=P230234''), it errors out as:
/usr/local/lib/ruby/gems/1.9.1/gems/mechanize-0.9.2/lib/www/mechanize/chain/response_header_handler.rb:32:in
`handle'': invalid byte sequence in UTF-8 (ArgumentError)
from
2007 Apr 15
0
mechanize 0.6.8 Released
mechanize version 0.6.8 has been released!
http://mechanize.rubyforge.org/
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:
= Mechanize
2008 Mar 12
0
mechanize 0.7.3 Released
mechanize version 0.7.3 has been released!
* <http://mechanize.rubyforge.org/>
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:
#
2007 Jul 27
0
mechanize 0.6.10 Released
mechanize version 0.6.10 has been released!
* <http://mechanize.rubyforge.org/>
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:
#
2007 Feb 26
1
some Mechanize objects never garbage collected?
Greetings,
I''m using Mechanize to scrap dozens of pages and have noticed the
size of my ruby process keeps growing. I set Mechanize.max_history to
0 with no effect on the memory use. I wrote a little test to show the
objects left on the heap after mechanizing a single page and then
doing a garbage collection. Sample list appended below. I can supply
the test code if it helps.
2008 Jan 15
0
mechanize 0.7.0 Released
mechanize version 0.7.0 has been released!
* <http://mechanize.rubyforge.org/>
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:
#
2007 Mar 28
0
mechanize 0.6.7 Released
mechanize version 0.6.7 has been released!
http://mechanize.rubyforge.org/
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:
= Mechanize
2007 Feb 27
0
mechanize 0.6.5 Released
mechanize version 0.6.5 has been released!
http://mechanize.rubyforge.org/
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:
=
2012 Feb 16
3
Mechanize::ResponseCodeError: 500
> Excuse me if my issue is a little bit application-specific. I need
> Mechanize to submit bunch of data from our server to an online reservation
> system. The url is https://secure.mdausa.org/donate/
> It works in my browser however using mechanize following error appears:
>
> /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize/http/agent.rb:241:in
> `fetch'':
2007 Nov 14
0
Hpricot & mechanize fail to parse page after redirect1q
Hi everyone,
My quest with mechanize/Hpricot continues :)
Something extremely strange happened today - some simple working code broke
down, and i can''t figure out why.
I am trying to access a piratebay.org search page, which does a redirect to
a relative url like this:
original link:
http://thepiratebay.org/s/?page=0&orderby=3&q=football+manager+2008&searchTitle=on
redirects
2012 Jul 23
2
Mechanize::Agent#post_connect_hook response != Mechanize#parse response
I''m working through an idea for a db-backed cache for Mechanize#get().
The idea is to use a Mechanize::Agent#post_connect_hook to cached any
fetch data, and create a subclass of Mechanize::Agent#get() that
checks the cache before calling super. I want to store the un-parsed
(raw) page in the db, and call Mechanize#parse when there''s a cache
hit, something along these lines:
2006 May 28
0
Best way to validate these dropdowns/multiselect options
Hi,
I have a <form> page in which there are a number of dropdowns and
multi-selects, each of which is populated upon the page loading by
quering its own table with the most recent values. These other tables
are very simple two-column set-ups - one for the ID/value and another
for the verbose description.
I am getting the editing/creation stuff working fine. The dropdowns work
with a
2008 Jan 15
1
Converting Watir script to Mechanize
I have a Watir script that I would like to convert to a Mechanize
script. The watir code looks like this
require ''watir''
include Watir
def test
ie = IE.new
ie.goto(''http://cpref.gsm.com/inter.asp?r=8084'')
ie.text_field(:name, ''inter_string'').set(''Potassium'')
ie.button(:id, ''image1'').click
2007 May 08
1
the website ban me when I use mechanize to grab its content, how to solve it?
Dear all,
I keep grab photos from one website.
At first I show them the default user agent (WWW-Mechanize). But
obviously they don''t like this behavior and ban the user agent
WWW-Mechanize. So I have to forge an IE user agent. It works for some
time. But the website administrator seemed to detect my behavior and
banned me again. This time I can not bypass it by simply modifying the
user
2006 Sep 11
0
mechanize lists
On Mon, Sep 11, 2006 at 09:04:49AM -0400, Mat Schaffer wrote:
> I noticed that my message is the first post to mechanize-
> users at rubyforge.org. Should I post to devel? That looks empty too,
> but I thought I''d check if you were only watching the devel list and
> not the users list.
Hey Mat, this is definitely a bug in mechanize. If you add this to your
script, it
2008 Mar 10
2
Mechanize for multi-part form post
Hi,
I''m interested in using Mechanize as a way around manual multipart
form creation. But the API is really centered around the idea of a
form built from a page. I''d love to see a syntax like:
response = agent.post(''http://www.mydomain.com/upload'',
:image => File.new(file),
:title => "My image",
:description => "an image
2011 Jan 18
2
how to get captcha image with mechanize ?
Hey, how to get captcha image with mechanize ? the image is not a
static picture, it''s a stream, a text-model.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110118/bf9a58ff/attachment.html>
2008 Jan 16
3
settings headers in mechanize
hi,
a potential mechanize user here. i''ve looked at the API but it''s not
clear what capacity there is to arbitrarily set the headers - does
mechanize allow for this?
mechanize is clearly great for web browsing, but i also need to
construct get and post requests from scratch. i''ve looked at
net:http, libcurl, openuri, but mechanize seems simpler and more
functional than
2009 Jun 10
0
Mechanize consumes ~11 mb
I''ve got a little test script that just sleeps, calls `free -m` and sleeps
again for a while.
Adding "require ''mechanize''" to the top of the script increases the resident
memory (as reported by top) from about 5mb to about 16mb. That 11mb jump
seems a little crazy to me.
The initial 5mb is rubygems, which also seems a little crazy to me.
Am I way off track?