Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: how do I extarct text from web site

by dominix (Deacon)
on Jan 07, 2004 at 00:40 UTC ( [id://319299]=note: print w/replies, xml ) Need Help??


in reply to how do I extarct text from web site

To simply got the text you can use lynx this way
 lynx -dump -nolist URL > mytextfile 
but well, I'll do it like that (ala tom christiansen)
perl -MHTML::Parse -MLWP::Simple -MHTML::FormatText -e 'print HTML::Fo +rmatText->new->format(parse_html(get($ARGV[0])))' http://perlmonks.or +g >perlmonks.txt
--
dominix

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found