33
7
I'm downloading a site with wget and a lot of the links have queries attached to them, so when I do this:
wget -nv -c -r -H -A mp3 -nd http://url.to.old.podcasts.com/
I end up with a lot of files like this:
1.mp3?foo=bar
2.mp3?blatz=pow
3.mp3?fizz=buzz
What I'd like to end up with is:
1.mp3
2.mp3
3.mp3
This is all taking place in ubuntu linux and I've got wget 1.10.2.
I know I can do this after I get everything via a script to rename everything. However I'd really like a solution from within wget so I can see the correct names as the download is happening.
Can anyone help me unravel this?
Post your question at www.stackoverflow.com. – Deniz Zoeteman – 2009-10-26T19:42:24.867
3@TutorialPoint why? question is looking for a within-wget-way-to-do-it, SO would just migrate it back here. – quack quixote – 2009-10-26T19:57:44.100
Well, there is no within-wget-way-to-do-it – ayrnieu – 2009-10-26T20:32:45.497
1@ayrnieu: not in one command, no. and not without a helper. but you can certainly do it with as few as n+1
wget
commands (if not fewer). – quack quixote – 2009-10-26T20:36:52.773