Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by InfiniteSilence (Curate)
on Aug 30, 2005 at 21:19 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://487947]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-20 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found