Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2018-07-22 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (451 votes). Check out past polls.

    Notices?