I'm getting started learning to use HTML::LinkExtor which seems to be appropriate for the little tast I've dreamed up to accomplish.

What I want to do is search a given web page, extract certain links from that web page. The example in HTML::LinkExtor can easily be modified to do this.

Where I'm stuck though is from each one of those certain links extracted from the first page, I then want to search those links and extract certain links from those pages. Maybe it would be more clearly explained to say I want to run the example script, extract a set of given links, then run the script again on each of those extracted links.

I've done a bit of searching (including merlyn's home page) and haven't found anything quite similar to this as yet. Perhaps I've over looked it. Pointers to similar code or gentle nudges in the right direction would be greatly appreciated.


In reply to Extracting links by cajun

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.