Mechanize 2.0.1 question

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!

anyone?

On Tue, Dec 13, 2011 at 11:15 AM, Spec Ex [email protected] 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 :slight_smile:

HTH,

Hassan S. ------------------------ [email protected]

twitter: @hassan