Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Help with web crawling

by tobyink (Abbot)
on Dec 09, 2012 at 11:01 UTC ( #1007969=note: print w/replies, xml ) Need Help??


in reply to Help with web crawling

use HTML::HTML5::Parser; my $uri = 'http://www.sec.gov/Archives/edgar/data/935226/00011442041 +1058092/0001144204-11-058092-index.htm'; my $xpath = '//*[@class="formGrouping" and ./*[@class="infoHead" and c +ontains(./text(), "Items")]]/*[@class="info"]'; my $item = HTML::HTML5::Parser -> load_html(location => $uri) -> findvalue($xpath); print $item, "\n";
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007969]
help
Chatterbox?
[johngg]: Corion: yes, there was not much movement on stage, they just stood behing their instruments and went through the set. The music was good though!
[johngg]: And it was loud - the only gig I've been to that was louder (painfully so) was Dr. Feelgood in a pub in Southend - awesome!
[marto]: Dr. Feelgood in a pub, that must have been a while ago
[johngg]: Yes, must be nearly 30 years ago.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-03-24 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (301 votes). Check out past polls.