in reply to Link Extracter using Mechanizemodule

HTML has no location attribute. It is quite unclear to me what kind of tag you are trying to extract. Please show a short (5 lines) HTML example (in <code>...</code> tags) that shows the tag from which you want to extract the link.

Replies are listed 'Best First'.
Re^2: Link Extracter using Mechanizemodule
by Anonymous Monk on Aug 26, 2011 at 07:35 UTC

      Then you will need to inspect what ->content gives you and use regular expressions. The link methods of WWW::Mechanize do not deal with arbitrary (unlinked) URLs. They only extract certain tags.

        Hi Corion

        Thank You

        Regards,

        Senthil

      Take a look at HTML::Tree::Scanning. Using HTML::TreeBuilder and the look_down method mentioned in the article works well for me.