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?)

2010-06-02 Thread Peng Yu
On Tue, Jun 1, 2010 at 10:40 PM, Micah Cowan mi...@cowan.name wrote: On 06/01/2010 05:53 PM, Peng Yu wrote: On Tue, Jun 1, 2010 at 6:48 PM, Micah Cowan mi...@cowan.name wrote: On 06/01/2010 04:36 PM, Peng Yu wrote: I need to use the option --convert-links to download only one webpage, because

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?)

2010-06-02 Thread Micah Cowan
On 06/02/2010 12:53 PM, Peng Yu wrote: On Tue, Jun 1, 2010 at 10:40 PM, Micah Cowan mi...@cowan.name wrote: On 06/01/2010 05:53 PM, Peng Yu wrote: On Tue, Jun 1, 2010 at 6:48 PM, Micah Cowan mi...@cowan.name wrote: On 06/01/2010 04:36 PM, Peng Yu wrote: I need to use the option

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?)

2010-06-02 Thread Peng Yu
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

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?)

2010-06-02 Thread Micah Cowan
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,

[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?)

2010-06-01 Thread Peng Yu
I need to use the option --convert-links to download only one webpage, because I want to convert absolute links to relative links if the links are under the host directory where the webpage is in. Since I only interest in one page, I'd like to set -l be zero. But it seems that if I set it to zero,

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?)

2010-06-01 Thread Micah Cowan
On 06/01/2010 04:36 PM, Peng Yu wrote: I need to use the option --convert-links to download only one webpage, because I want to convert absolute links to relative links if the links are under the host directory where the webpage is in. Since I only interest in one page, I'd like to set -l be

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?)

2010-06-01 Thread Micah Cowan
On 06/01/2010 05:53 PM, Peng Yu wrote: On Tue, Jun 1, 2010 at 6:48 PM, Micah Cowan mi...@cowan.name wrote: On 06/01/2010 04:36 PM, Peng Yu wrote: I need to use the option --convert-links to download only one webpage, because I want to convert absolute links to relative links if the links are