I'm trying to mirror a site but the css linked has the url: http://127.0.0.1:2368/assets/css/screen.css?v=c44dc08367
Using wget to download the site saves the css file with the filename screen.css?v=c44dc08367
I tried using --adjust-extension
flag but that saves the file as screen.css?v=c44dc08367.css
Is it possible to save it the right way as screen.css
using wget?
I'm using GNU Wget 1.14 built on darwin12.5.0.
EDIT: I can't specify the file name as I'm mirroring the whole site, so the actual command goes like this. The css link is inside the page (which is fetched automatically by wget)
wget \
--recursive \ # follow links to download entire site
--page-requisites \ # grab everything: css / inlined images
--no-parent \ # don't go to parent level
--directory-prefix static \# download contents to static/ folder
--no-host-directories \ # don't create domain named folder
--adjust-extension \
http://127.0.0.1:2368/
httrack
tool. Two more points: did you miss--convert-links
? And moreover, though?
is in the filename here, the?
is replaced with%3F
in the html source, so it is recognized as being part of the filename.