Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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('')" >> 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('', '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?


    All code is usually tested, but rarely trusted.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://487947]
[Eily]: kinda sounds like father Christmas is late
[hippo]: (asking because I'm sure you said before about learning English) Did you know there are 2 different words for smaller quantities in English? They are "less" and "fewer". Fewer applies to a number of discrete things like days.
Eily notes also
[hippo]: So if you don't drink as much milk and not as often you are said to drink less milk on fewer days. Confusing, eh?
[Eily]: same as many/much, few/little
[Discipulus]: so my 'less' usage sounded not so correct? 'fewer' was more appropriate? i take a note too

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-01-23 09:12 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (242 votes). Check out past polls.