From 9ef1f005752745492ce14591ee4a38510cd94f88 Mon Sep 17 00:00:00 2001 From: miguel Date: Mon, 20 May 2024 11:18:46 +0100 Subject: [PATCH] fix(wget): add flag to wget subject --- subjects/wget/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/subjects/wget/README.md b/subjects/wget/README.md index 4027cc836..b14e1cb68 100644 --- a/subjects/wget/README.md +++ b/subjects/wget/README.md @@ -169,6 +169,16 @@ example: $ go run . --mirror -X=/assets,/css https://example.com ``` +- [Convert Links for Offline Viewing](https://www.gnu.org/software/wget/manual/wget.html#The-%60--convert_002dlinks%60-Option) (`--convert-links`) + +> this flag will convert the links in the downloaded files so that they can be viewed offline, changing them to point to the locally downloaded resources instead of the original URLs. + +example: + +```console +$ go run . --mirror --convert-links https://example.com +``` + ### Hint You can take a look into the [html package](https://godoc.org/golang.org/x/net/html) for some help.\