Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How can I download HTML and save it as txt?

by InfiniteSilence (Curate)
on Aug 30, 2005 at 21:19 UTC ( #487947=note: print w/replies, xml ) Need Help??


in reply to How can I download HTML and save it as txt?

perl -e "use LWP::Simple; getprint('http://myfoo.com')" >> myfile.txt

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re: How can I download HTML and save it as txt?
by b10m (Vicar) on Aug 30, 2005 at 21:25 UTC

    This would be nicer, IMHO:

    perl -MLWP::Simple -e"getstore('http://myfoo.com', 'myfile.txt')"

    Not sure what the tassex really wants though. Do you (tassex) want to store the HTML in a .txt file (like above), or do you want to strip the HTML and save the text?

    --
    b10m

    All code is usually tested, but rarely trusted.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2018-04-26 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?