Hi,

Your problem is that you are searching for something that doesn't exist. The content you printed clearly shows there is no "iframe" string in the text. So you can search that text all you want for "iframe"--using Mechanize or anything else--and you are never going to find it.

The reason the actual page's text has "iframe" in it is presumably because the browser reads that text you have, and the browser sees some javascript code in there, so the browser executes the javascript code. Then somewhere in the javascript code there are instructions for the browser to add "iframe" to the text, which it does producing a new page of text.

Therefore, in order to find the "iframe" text you want, you need to give the text you currently have to some kind of program that can read the text, recognize the javascript, execute it, and produce a new page of text according to the instructions in the javascript. A few years ago there were no such programs that could do that because they were too difficult to write. Now apparently there are some.


In reply to Re: Perl iframe problem by 7stud
in thread Perl iframe problem by tak_hot

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.