[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] How to simulate "Save as webpage, complete"?
From: |
MB2613 |
Subject: |
[Bug-wget] How to simulate "Save as webpage, complete"? |
Date: |
Wed, 2 Jan 2019 04:49:52 -0600 |
Hi, not a bug, but a question:
The command:
wget --no-directories --adjust-extension --directory-prefix _files
--convert-links --page-requisites --span-hosts http://www.Google.com
saves the Google homepage as "index.html" along with associated files, all
together in the folder "_files". The result works nicely, but what I want is
for "index.html" to be in one folder and the associated files to be in a
subfolder of that called "_files". This is what a browser does when one asks
it to "save as webpage, complete." How do I simulate that behavior with
Wget?
The manual entry for -P / --directory-prefix says "the directory prefix is
the directory where all other files and subdirectories will be saved."
Because of the word "other," I thought this would do what I want, but it
didn't. It put all the files in the same directory, including "index.html".
I am using Wget, v. 1.20 as the Windows binary provided by Jernej Simončič
at www.eternallybored.org/misc/wget/ and running it in a DOS window
("Command Prompt") of Windows 7.
Thanks for your help.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-wget] How to simulate "Save as webpage, complete"?,
MB2613 <=