FEAR::API #3 | FEAR::API - There's no fear with this elegant site scraper | Next >>

## Example 1

    use LWP::Simple;
    use HTML::LinkExtractor;
    use Data::Dumper;

    my $input = get("http://google.com");
    my $LX = new HTML::LinkExtractor();

    $LX->parse(\$input);

    print Dumper($LX->links);

    # or you use WWW::Mechanize
    use WWW::Mechanize;
    use Data::Dumper;
    my $mech = WWW::Mechanize->new();
    $mech->get( "http://google.com" );
    print Dumper $mech->links;

<< Previous | Index | Next >> | Copyright © 2006 Yung-chung Lin