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. Advertisements

  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. Advertisements

  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. Advertisements

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. Graham Thomson
    Replies:
    3
    Views:
    626
    Eki Y. Baskoro
    Dec 18, 2003
  2. tintac
    Replies:
    1
    Views:
    875
    Andrew Thompson
    Jan 29, 2005
  3. Dan M
    Replies:
    5
    Views:
    633
  4. kolesdz
    Replies:
    9
    Views:
    754
    Blinky the Shark
    Aug 22, 2007
  5. Marina Limeira

    LINK with another link

    Marina Limeira, Feb 7, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    241
    Marina Limeira
    Feb 7, 2006
  6. Andrew
    Replies:
    2
    Views:
    204
    Andrew
    Feb 18, 2009
  7. Blue®
    Replies:
    4
    Views:
    1,189
    Blue®
    Sep 27, 2003
  8. Guest
    Replies:
    2
    Views:
    245
    Vasiliy Litovchenko
    Sep 11, 2006
Loading...