bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] wget file name too long error


From: Yiwei Yang
Subject: Re: [Bug-wget] wget file name too long error
Date: Tue, 25 Jun 2013 11:30:54 -0500

Thanks,Darshit. The problem I can't use shortener is because I have a list
of URLs and I feed it into a C program which parses the list and call
wget... on each of them. Is there  way to make this shortener process
automated in my c program? Thanks!

Yiwei


On Tue, Jun 25, 2013 at 12:21 AM, Darshit Shah <address@hidden> wrote:

> Hi Yiwei,
>
> Thanks for reporting the issue.
>
> The said problem has been fixed in the current alpha build of Wget. It
> will be available when the next version of Wget is released.
>
>
> On Mon, Jun 24, 2013 at 11:53 PM, Yiwei Yang <address@hidden> wrote:
>
>> Hi,
>>    I want to save everything I downloaded from wget. However, When I use
>> wget -p -H <url> where <url> can be some extremely long link like
>>
>>
>> http://www.baidu.com/baidu.php?url=060000jseau7X1x3eY6DC9bMYbAZCSUYxKoGEAnm9bNQ-3C74TFYrjjVVWsntVGEBBWZvekliovDdNxOis9AkTcakEduxtazv2paoo2eTfutzgOK0-y3T8FCc4Oo9m76K7snYbn.7Y_igLRPg-ktXKhFDDT7TAHxYsUJS1_4qtAFB81IvU2S2-muCyr1xbvIB6.U1Yk0ZDqdXUcOUMl1VeQJsKY5Ighz5v4S_eXzl_0pyYqnW0k0ATqmhNsT100Iybqmh7GuZR0TA-b5HnL0APGujYs0AdY5H00pvbqn0KzIjYYP6K-pyfqnHfvPNtkrHfdg1cznjFxnHT3r7tznWRsg1czPW00mhbqrj6Yr0KVm1Ys0Z7spyfqn0Kkmv-b5H00ThIYmyTqn0KEIhsqnHcsQHNxnHczQHb4rHb4g1cvradbX-tzP1bVuZC0mycqn7ts0ANzu1Ys0ZKs5H00mh
>>
>> Since the URL is too long I get file name too long error when I save it.
>> If
>> I use -O ?? to specify the file name it still won't work since -p will
>> fetch everything(several objects) that support the website so the first
>> object fetched is saved as this   ?? but then the second fetched object
>> will also be saved as ??  and now since " aa already exists" then it won't
>> store this second object.
>>
>> So the problem is I can't use differnt file name for them to store, since
>> they are all fetched from one single wget -p URL execution.
>>
>>    How can I solve all the objects even if the URL is very long and I
>> don't
>> want to change the URL itself? Thank you!
>>
>>
> One workaround you can use till then is to use a URL shortener like bit.lyor
> goo.gl.
> Pass the shortened URL to wget. This works since wget will write to a file
> whose name is defined by the url you pass to it on invokation.
>
>
>
> --
> Thanking You,
> Darshit Shah
>
>


reply via email to

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