Hi all, I''m currently working on a screen scraping app using Mechanize and Rails 2.3.4. I have two parts of the app that need to work together. First, there is a user driven iframe - once the user gets to a specific page on the website to be scraped, I want the user to be able to press a button at which point Mechanize can activate and scrape the page in the iframe. So, essentially my question is, can mechanize scrape an existing iframe page that has already rendered and be able to capture the info through rails? If there are any other ways to get about accomplishing this, kindly advise. I''ve been struggling with this for a while now. Thanks! -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
anyone? -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Tue, Dec 13, 2011 at 11:15 AM, Spec Ex <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> So, essentially my question is, can mechanize scrape an existing iframe > page that has already rendered and be able to capture the info through > rails?No. You''re asking from something that could run in a browser (JavaScript) *and* ignore or bypass the same-site-origin policy. "Mechanize .. is used for automating interaction with websites" is what mechanize.rubyforge.org says -- a different kettle of fish :-) HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.