bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] How to set -l to be zero? (Or how to download a single we


From: Micah Cowan
Subject: Re: [Bug-wget] How to set -l to be zero? (Or how to download a single webpage and convert the absolute links to relative links with wget?)
Date: Wed, 02 Jun 2010 13:59:11 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4

On 06/02/2010 01:16 PM, Peng Yu wrote:
>> Ah, sorry, I misunderstood what you wanted. What I described will
>> convert relative links to absolute links, not vice versa.
> 
> No problem.
> 
>> You're right, to get what you want, then you need recursion; wget only
>> converts links to point at pages locally, if it directly knows they've
>> been downloaded (because it had done so). That being the case, -l 0
>> wouldn't have worked even if it did what you hoped, because it would not
>> have downloaded them, so there's no way to do it without recursing to
>> the links that you want to be converted afterward.
> 
> How to overwrite a file if the file has already downloaded (I'm
> downloading a single page without --mirror option)?

I don't think there's a direct way to do this, other than to use -O;
there's also -N which usually does that (but won't download at all in
the event that the server uses timestamps, and the timestamp hasn't
changed since the last download).

-- 
Micah J. Cowan
http://micah.cowan.name/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]