Skip to content

Commit

Permalink
fix(wget): add flag to wget subject
Browse files Browse the repository at this point in the history
  • Loading branch information
MSilva95 committed May 20, 2024
1 parent d94bcdb commit 9ef1f00
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions subjects/wget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.\
Expand Down

0 comments on commit 9ef1f00

Please sign in to comment.