Displaying 20 results from an estimated 1000 matches similar to: "issue submitting a form"
2010 Sep 01
4
NoMethodError: undefined method `force_encoding' for "Conten
Hi everyone!
Im trying to install mechanizer from
http://github.com/tenderlove/mechanize.
I`ve clone the project into /tmp folder. When I do rake inside the
folder /tmp/mechanizer it gives me this error:
mac159180:mechanize renatosis$ rake
(in /private/tmp/mechanize)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w
-Ilib:bin:test:. -e ''require "rubygems";
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
2009 Sep 17
1
Load Error Using Mechanize Gem
Hi,
I''m getting a "Could not open any of [xml2, xslt, exslt] (LoadError)" error when trying to run a simple Ruby program taken from the EXAMPLES.rdoc file of the Mechanize gem.
The error is in this line of the Nokogiri module of libxml.rb: ffi_lib ''xml2'', ''xslt'', ''exslt''
Not sure if there are missing gems, and if so,
2008 Mar 11
8
Mechanize#get vs Mechanize#fetch_page
So I found myself wanting to call Mechanize#get with a hash for
arguments like this:
WWW::Mechanize.new(''http://api.flickr.com/services/rest/'', {:method =>
''flickr.auth.getFrob''... })
Granted, it looks like this isn''t supported but it led me to what
looks like a bug. Namely that get calls fetch_page(abs_uri, request,
cur_page, &block)
2010 Jan 08
7
input form fields not in the #<WWW::Mechanize::Form array
Hi
This may be a dumb question with an obvious answer.
It would seem that an input form field identified with an ''id'' qualifier
and not with a ''name'' qualifier is not recognised by Mechanize - at
least it isn''t in the form field list.
Is there any way of getting at these elements or am I, as I suspect,
fresh out of luck. But you never know ...
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) }
2009 Apr 18
1
[PATCH] When user provides an encoding then use it, otherwise autodetect it
Hi,
I''ve created a small patch to mechanize.
The problem:
The user should be able to set his own page encoding, for example when
<meta /> encoding information can is invalid or auto detection
routines fail to guess correctly.
Actual results:
Mechanize will use the encoding detected by it (or Nokogiri/libxml2)
always when there''s a <meta /> with encoding information
2010 Jan 25
4
Does Amazon.com blocks scraping?
Hi there
Does anyone know if Amazon.com has any sort of server side script that tries
to block scraping activities? I first noticed that if I didn?t change the
agent alias, it would fetch a page exactly like the normal one, but without
the intial search field(maybe a silly way to prevent scraping). Then after
it, I changed to some other alias, and submit a search. I got the result
page as
2009 Jul 26
3
Failed to build gem native extension
On Sat, Jul 25, 2009 at 9:14 PM, Jeffrey
Roberts<jeffrey.l.roberts at gmail.com> wrote:
> Hello all, I have looked up and down on google for a solution to this going
> on several days now, I am really hoping someone here can help me out.
>
> I have all my deps in order, and I believe the error is that it is looking
> in /usr/lib when it should be looking in /usr/lib64, I am
2011 Dec 15
4
Scrapping Content from a website
Hey all,
I want to scrap some content from a website to rails application and
wants to authenticate the url of the website which I want to scarp so
please help me out....
Thank You!!!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2011 Mar 27
2
LinkedIn still not working?
To clarify the issue I posted earlier:
I am on OS X 10.6.7. Trying to use Mechanize to log in to LinkedIn. As others have posted about in the past, when I submit the form it kicks me back to the LinkedIn landing page, and does not log me in.
I read the earlier discussion of the issue that mentioned how cookie values were being improperly dequoted when stored. But I thought that issue was fixed.
2009 Sep 25
0
WWW::Mechanize and Rails console not playing well
I can run this code just fine in irb, but when I run it in rails
script/console, I get an error:
>> res = agent.submit(search_form, search_form.buttons.first)
ArgumentError: one hash required
from /home/jwoods/NetBeansProjects/activista/vendor/rails/
actionmailer/lib/../../actionpack/lib/../../activesupport/lib/
active_support/core_ext/string/interpolation.rb:85:in `%''
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'':
2011 Nov 17
2
please suggest a web page automation tool
I''ve been trying to get a couple of web automation tools going today
and having a hard time. Seems like everything I try is outdated and
won''t run on my environment. Mechanize seemed like a good one but it
doesn''t want to run:
require ''rubygems''
require ''open-uri''
require ''mechanize''
agent = Mechanize.new
2011 Dec 05
12
Using nokogiri
HI,
I want to grab some information about university names, and I found
this term called "web scraping"
I search about it in google, and there are tools in ruby.
One of them is nokogiri but I''m a bit confused because it seems that
it only gets information that its already in an html or xml
I found a webpage that have a list of university names as a
<select>
2009 Dec 23
4
html parser / assertions in a model
I am using http.get in a model to parse html code returned from a Oracle
server.
My first try was to use assertions (assert and assert_select) to test
and parse the html code. But I have problems including the methods in
the model. Have tried both "include" and copy/paste to get assertion
methods into my model. Works as a model, but I get load errors when I am
using the model from a
2009 Oct 21
4
XML file using Nokogiri gem
Hello friends,
Can you guys give me some idea about how to Create XML file using
Nokogiri gem.
--
Posted via http://www.ruby-forum.com/.
2009 Oct 13
9
Nokogiri: to_s WITHOUT html surrounding's tags?
Hi all
n = Nokogiri::HTML("<h1>H1</h1>")
n.to_s
# => <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"
\"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><body><h1>H1</h1></body></html>
Is there a method that only outputs the stuff I''ve read, and not the
whole valid XHTML stuff?
2009 Jan 05
1
packet_worker_runner error
Hi,
I still have the following error while loading backgroundrb :
/opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/
packet-0.1.14/lib/packet/packet_master.rb:116:in `exec'': No such file
or directory - packet_worker_runner 14:11:maintenance_worker:64:/home/
antz/declix.com/production/lib/workers (Errno::ENOENT)
from
2007 Sep 14
1
Unable to scrap gmail.com - EOFError: End of file reached
Hi all,
I am so excited to use mechanize! It has opened a whole new world of
projects for me :)
I am trying to login into the Gmail.com server, as described in
http://schf.uc.org/articles/2007/02/14/scraping-gmail-with-mechanize-and-hpricot
but am running into a few issues...
irb(main):010:0> page = agent.submit form
EOFError: end of file reached
from