link extract

Discussion in 'Perl Misc' started by novostik@googlemail.com, Sep 16, 2006.

  1. Guest

    hi everybody.....
    i have a problem in out here. I know how to
    extract links from a html page.But is there any way u can extract a
    particular set of links from an html page??By this i mean,say there is
    a particular page which has news links on one side of the page, links
    of company products on the middle, and links of its businesses in the
    right side.Can u tell me how to extract these links as three different
    sets.
    , Sep 16, 2006
    #1
    1. Advertising

  2. John Bokma Guest

    "" <> wrote:

    > hi everybody.....
    > i have a problem in out here. I know how to
    > extract links from a html page.But is there any way u can extract a
    > particular set of links from an html page??By this i mean,say there is
    > a particular page which has news links on one side of the page, links
    > of company products on the middle, and links of its businesses in the
    > right side.Can u tell me how to extract these links as three different
    > sets.


    I probably would use HTML::TreeBuilder for that. If the tree sections are
    each in their own container this is a piece of cake. Also, you can use
    regexp on attribute values, which might help.

    --
    John Experienced Perl programmer: http://castleamber.com/

    Perl help, tutorials, and examples: http://johnbokma.com/perl/
    John Bokma, Sep 16, 2006
    #2
    1. Advertising

  3. John Bokma Guest

    John Bokma <> wrote:

    > "" <> wrote:
    >
    >> hi everybody.....
    >> i have a problem in out here. I know how to
    >> extract links from a html page.But is there any way u can extract a
    >> particular set of links from an html page??By this i mean,say there
    >> is a particular page which has news links on one side of the page,
    >> links of company products on the middle, and links of its businesses
    >> in the right side.Can u tell me how to extract these links as three
    >> different sets.

    >
    > I probably would use HTML::TreeBuilder for that. If the tree sections


    ^^^^

    :-D

    --
    John Experienced Perl programmer: http://castleamber.com/

    Perl help, tutorials, and examples: http://johnbokma.com/perl/
    John Bokma, Sep 16, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Spencer

    Re: Link Link Link DANGER WILL ROBINSON!!!

    Kevin Spencer, May 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    816
    Kevin Spencer
    May 17, 2005
  2. Graham Thomson
    Replies:
    3
    Views:
    462
    Eki Y. Baskoro
    Dec 18, 2003
  3. tintac
    Replies:
    1
    Views:
    768
    Andrew Thompson
    Jan 29, 2005
  4. Dan M
    Replies:
    5
    Views:
    421
  5. Guest
    Replies:
    2
    Views:
    163
    Vasiliy Litovchenko
    Sep 11, 2006
Loading...

Share This Page