Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Help with web crawling

by CountZero (Bishop)
on Dec 09, 2012 at 09:27 UTC ( #1007964=note: print w/replies, xml ) Need Help??

in reply to Help with web crawling

Downloading the HTML-code of a web page is easy. LWP::Simple is the traditional Perl way of doing it.

use Modern::Perl; use LWP::Simple; my $content = get(' +4420411058092/0001144204-11-058092-index.htm'); say $content;
Of course that is only the simple part of your task. Extracting what you need is the difficult part.

HTML::Treebuilder is one of the HTML parsing modules that can be helpful here.


A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^2: Help with web crawling
by eversuhoshin (Sexton) on Dec 09, 2012 at 16:28 UTC

    Thank you so much!! I can extract the parts I need now!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007964]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2018-06-22 02:03 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (120 votes). Check out past polls.