LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   wget fails when i want to download from a URL which contains "=" or "&' (https://www.linuxquestions.org/questions/linux-general-1/wget-fails-when-i-want-to-download-from-a-url-which-contains-%3D-or-and-382049/)

noware 11-11-2005 03:17 AM

wget fails when i want to download from a URL which contains "=" or "&'
 
Hi All!

I just wanted to get some stuff from kde-llook.org and took this command :

wget -r --accept=jpg,JPG
......kde-look.org/index.php?xcontentmode=1x2x3x4x5x6x7

and wget said :

........kde-look.org/index.php?xcontentmode=1x2x3x4x5x6x7
Invalid Argument

My question is, how can i download from such a location.

Thx, Regards

trevelluk 11-11-2005 07:10 AM

Try putting the URL in quotes.

noware 11-12-2005 03:31 AM

It fails again
 
Hi!

I tried to put the URL in quotes , even in double quotes, but it fails again with the same error message.

trevelluk 11-12-2005 11:55 AM

Ah, hang on a minute. Are you actually typing all those dots at the beginning? For me, then running wget -r --accept=jpg,JPG
http://kde-look.org/index.php?xconte...=1x2x3x4x5x6x7 seems to work.

noware 11-13-2005 04:44 AM

Why i put those dots into the URL is becouse of this site's limitations. I wrote the correct URL into the command, i copy-pasted it from my browser. But i tried it on my company machine, which is running windoze(!!!!!??????#&@#>&#@#), i took this command inside a cygwin bash, and i also tried the gnu-wget for win as well, but both fails with the same message.

trevelluk 11-13-2005 04:52 AM

Hmmm, to be honest, I'm out of ideas. Sorry, and hope you get it sorted.

noware 11-13-2005 04:57 AM

Thanks for your replies Trvelluk, at least now i know that what i wanted could be done somehow. Maybe i should try this on some linux-based machine. I hate this windoze stuff!

yapp 11-13-2005 07:35 AM

Re: It fails again
 
Quote:

Originally posted by noware
Hi!

I tried to put the URL in quotes , even in double quotes, but it fails again with the same error message.

You should at least use single quotes, so the special characters inside the URL are hidden from the shell. Otherwise they are interpreted by the shell.

KDE-look does some strange things. You can use 'wget' to download all individual files, but it's more difficult to download the HTML pages. I think they store a lot of data in sessions/cookies, because I cannot find any indication of those at the URL/query-string.


All times are GMT -5. The time now is 11:30 AM.