http://www.perlmonks.org?node_id=1007964


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('http://www.sec.gov/Archives/edgar/data/935226/00011 +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.

CountZero

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!