3
1
I need some documentation about XUL but I do not have Internet access most of the time. So, I've tried to download the Mozilla Tutorial with the following command:
wget --no-parent -r -l 2 -p -k https://developer.mozilla.org/en/XUL_Tutorial
My intention was to download both the https://developer.mozilla.org/en/XUL_Tutorial
page and its subpages (for example, https://developer.mozilla.org/en/XUL_Tutorial/Install_Scripts
). However, even though I passed the --no-parent
flag, it keeps getting pages such as https://developer.mozilla.org/index.php?title=Special:Userlogin&returntotitle=en%2FXUL+Tutorial%2FInstall+Scripts
.
I do not understand why it happens. How could I achieve the behavior I intended?
it only download the index.html file
That was because you were usingl 2
. Since you did not change the accepted answer, I guess you never increased the recursion level to realize this is the best answer for the question as it had been asked. – Synetech – 2014-12-13T02:42:19.133This is the correct answer to the question. Confirmed. – Johannes Overmann – 2019-06-28T09:31:20.933
I tried
wget --no-parent -r -l 2 -p -k https://developer.mozilla.org/en/XUL_Tutorial/
but it only download theindex.html
file... – brandizzi – 2011-09-15T13:13:58.310that was my issue! probably common among wget beginners – John Berryman – 2014-01-21T23:35:07.680