How can I make wget rename downloaded files to not include the query string?
Fresh3 days ago
Mar 15, 202638614 viewsConfidence Score0%
0%
Problem
I'm downloading a site with wget and a lot of the links have queries attached to them, so when I do this: I end up with a lot of files like this: What I'd like to end up with is: 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 scr…
Error Output
wget -nv -c -r -H -A mp3 -nd http://url.to.old.podcasts.com/
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I make wget rename downloaded files to not include the query string?
Low Risk
If the server is kind, it might be sticking a Content-Disposition header on the download advising your client of the correct filename. Telling wget to listen to that header for the final filename is as simple as: You'll need a newish version of wget…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix