Displaying 20 results from an estimated 10000 matches similar to: "input form fields not in the #<WWW::Mechanize::Form array"
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,
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 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 Aug 24
5
extract keywords from string
hi -
i have strings that i need to extract keywords from. the string might
have html tags, urls, etc. i need to extract the keywords from the
string. i imagine i''m not the first guy to have to tackle this
problem. is there a gem i can use or anyone have any ideas how to
approach this?
thanks,
dino
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
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
2010 Nov 05
4
subsets, %in%
Hi,
I have a question about %in% and subsettin data frames.
Say I need to keep ID 1,2,4,5, 10 from the data frame dat. I can do:
dat <- data.frame(ID = 1:10, var = 1:10)
someID <- c(1,2,4,5,10)
subset(dat, dat$ID %in% someID)
Is there a quick way to do the opposite, ie to do a subset that contains
all ID but someID? Something like %not in%, which would *remove* lines with
ID in
2013 Jun 20
3
Samba+LDAP: NT_STATUS_UNSUCCESSFUL because of primary group SID mismatch
Hi,
I'm trying to get my new samba server running for a few days now and I
start losing my mind over not figuring out what I'm doing wrong. Here's
my setup:
OpenLDAP 2.4.21 server with ~15 groups and >100 users, all having a unix
and a samba NT password stored in the LDAP as well as a User SID and
Primary Group SID assigned and stored in the LDAP, derived from the SID
of the LDAP
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 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
2008 Oct 15
2
Adding an id to form_tag
Hi all,
When using form_for it is easy to add an id to the form using :html =>
{:id => ''someid''}
However, how would one accomplish the same when using the form_tag ?
Thank you in advance,
Schalk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post
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
2010 Feb 07
4
Optimizing ActiveSupport with native code
I''ve had this idea kicking around in my head for a while, and had some
time yesterday to start playing around with it: ActiveSupport is
heavily used in both the Rails library code and in the application
layer of a typical Rails stack. Certain parts of AS would be much more
efficiently implemented in C rather than Ruby; that optimization could
potentially have some noticeable, positive
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 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/.
2010 Nov 22
3
Issue using bundler
I run bundle install, or bundle update, and it fails. I''m using RVM, so
if I switch to Ruby 1.9.2, this works fine, but using Ruby 1.8.7 it
fails. Any idea?
jeremy-woertinks-imac:winovations jeremywoertink$ bundle update
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using RedCloth (4.2.3)
Using abstract (1.0.0)
Installing activesupport (3.0.1)
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 22
8
From Instantrails to the Mac
Hi,
I am a Newbie to Mac and Rails.
I have a rails apps made using instantrails in windows, and have
been trying to transfer it to a mac.
I am using Leopard and installed mac ports and Xcode.
I copied the folder from rails_apps and added all the gems.
Anything else I need to do? Any Ideas?
Thank you!
This is the set of errors that I am getting after starting the server:
Exiting
2013 Sep 02
2
Why the string interpolation is not working inside the Nokogiri method `#search` ?
Why the string interpolation is not working inside the Nokogiri method
`#search` ?
require ''nokogiri''
doc = Nokogiri::HTML::Document.parse <<-eotl
<div>
<p>foo</p>
<p>foo</p>
<p>bar</p>
</div>
eotl
doc.class # => Nokogiri::HTML::Document
class Person
attr_accessor :name
end
ram = Person.new