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.