Menu

links inside frames

Help
Anonymous
2004-01-19
2004-01-19
  • Anonymous

    Anonymous - 2004-01-19

    Hi
    How can I extract links inside frames?
    Many Thanks
    Shantha

     
    • Derrick Oswald

      Derrick Oswald - 2004-01-19

      Shantha,

      The FRAMESET tag has zero or more FRAME tags which have the URL of the frame contents that you want.
      Get the FRAME tags using any of the usual mechanisms (see http://htmlparser.sourceforge.net/wiki/index.php/LinkExtraction for ideas of how to get tags of a certain type), and then follow the URL returned from   frametag.getFrameLocation ();   with another parser, or the same parser if you're finished with the one you have.
      For a complete example of a program that follows links in frames using the custom tag method, see org.htmlparser.parserApplications.SiteCapturer.

      Derrick

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.