Scraping a Website with wget

Recently I needed to adapt a template, and of course I wasn’t going to buy one. So I’d scrape one instead — a quick search turned up wget as a pretty good way to do it.
wget -r -p -np -k https://erik.xyz and you can scrape the whole site’s template to your local machine.

Then package it up, compress it, copy it to a Windows machine and you can tinker with it as you like.
While I was at it I looked up how to use wget
-a: record the execution process in the specified log file;

-A: specify the suffixes of the files to download; separate multiple suffixes with commas;

-b: run wget in the background;

-B: set the base address for reference link addresses;

-c: continue the task interrupted last time;

-C: set the server data block feature flag; on activates it, off disables it, the default value is on;

-d: run the command in debug mode;

-D: set the list of domains to follow; separate domains with “,”;

-e: execute the specified command as part of the “.wgetrc” file;

-h: show command help information;

-i: get the URLs to download from the specified file;

-l: set the list of directories to follow; separate multiple directories with “,”;

-L: follow only relative links;

-r: recursive download mode;

-nc: when the file exists, the downloaded file does not overwrite the existing file;

-nv: during download show only update and error messages, not the detailed command execution process;

-q: don’t show the command execution process;

-nh: don’t look up host names;

-v: show the detailed execution process;

-V: show version information;

—passive-ftp: use passive mode PASV to connect to the FTP server;

—follow-ftp: download FTP-linked files from HTML files.