in reply to Re: Parsing Links from .php
in thread Parsing Links from .php

Thanks for the answer! I actually just got the O'Reilly Perl and LWP book, and I'll be better able to say if this works once I've read through it more, but I have a quick question right off the bat.

Will this work for a situation where there are several frames, each with a seperate .php file, whose links and data I need to access almost simultaneously?

The site I'm using has a frame above, to navigate through areas, which are displayed on the frame below.

Replies are listed 'Best First'.
Re^3: Parsing Links from .php
by SilasTheMonk (Chaplain) on Jan 11, 2010 at 15:37 UTC
    Your Iframe HTML will probably look something like:
    <iframe name="FRAME1" src="id77.htm" width="730" height="360" framebor +der="0"></iframe>
    You need to pull out those iframe elements and do another LWP::UserAgent::get on the src attributes. It is a bit like writing a script that reads a webpage and does stuff with the images. However instead of an image you have another round of HTML to parse. I am not sure what you mean by "almost simultaneously".
Re^3: Parsing Links from .php
by planetscape (Chancellor) on Jan 12, 2010 at 03:32 UTC