creating a mirror with wget

Hi All,

I'm trying to create a mirror of a website by using wget. It works pretty well on most pages. The HTML of the problem pages tries to include css files which were not downloaded by wget. What is the easiest way to solve this? See the code below.
<style type="text/css" media="screen">@import "/path/file.css";</style>

Open in new window

Who is Participating?
omarfaridConnect With a Mentor Commented:
what wget command did you use?
Pretty details on doing mirror with wget

Another Solution: Using HTTrack for Linux

Good luck
<STYLE TYPE="text/css" MEDIA="screen">
  @import url(/path/file.css);
alberthendriksAuthor Commented:
I use the code below. The idea of the strange base-url is that I could string-replace it later. However it appears nowhere, and it doesn't seem relevant.
wget --base="{{__base-url__}}" \
     --convert-links \
     -i urls.txt \
     --user-agent="Firefox faker for migration" \
     --directory-prefix ~/public_html/migratie \
     --mirror \
     --save-headers \
     --limit-rate=45k \
     -N \
     -o wget.log \
     --page-requisites \
     --cache=off \

Open in new window

alberthendriksAuthor Commented:
Nobody seems to know a solution. I chose to give the points to someone who doesn't pretend to have one.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.