Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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('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


Comment on Re: Help with web crawling
Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007964]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2014-09-22 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (207 votes), past polls