search for: wiredquote

Displaying 5 results from an estimated 5 matches for "wiredquote".

2009 May 08
2
Malformed HTML
I''m using Mechanize to parse an extraordinarily malformed html page. After submitting a form like so: page = mech.submit(dform) The result I get back is truncated. I suspect that it''s because the source HTML looks like this: <html> <head> yadda yadda</head> <p>some text</p> <html> <table yadda yadda> My
2010 Jun 10
2
submit button param is duplicated when a form is submitted a second time
Hello, Below I''ve pasted a simple example to reproduce what I say in the subject. I wonder... Is it a bug? Is there any workaround? Thanks! require ''rubygems'' require ''mechanize'' agent = Mechanize.new page = agent.get(''http://google.com/'') google_form = page.form(''f'') google_form.q = ''ruby
2010 Jun 03
3
issue submitting a form
Hi. Recently I started rebuilding my old Mechanize script, which I used to automatically log in to a certain site and retrieve files from it. Old version worked great, however, when I did the update it started complaining. Here''s the log of the error: /Users/lukastolyarov/.gem/ruby/1.8/gems/mechanize-1.0.0/lib/mechanize/form/field.rb:30:in `<=>'': undefined method
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?
2009 May 05
3
Only partially reading a page!
I am trying to get a page which includes a form, but the form is missing from the WWW::Mechanize::Page object. I retrieve it via: page = web_agent.submit(a_different_form) For debugging this problem, I then immediately write the resulting page to two different logs: File.open(''big.html'',''wb'') { |f| f.write(page.body) }