docs: add website saving tools to cheatsheet
This commit is contained in:
parent
45e2743053
commit
43ee63b7af
1 changed files with 18 additions and 0 deletions
|
|
@ -55,3 +55,21 @@ cd .. # parent directory
|
||||||
ctrl+r # fzf history search
|
ctrl+r # fzf history search
|
||||||
ctrl+t # fzf file finder
|
ctrl+t # fzf file finder
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## save websites
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# одна страница в single html (с CSS+JS)
|
||||||
|
monolith https://example.com -o page.html
|
||||||
|
|
||||||
|
# рекурсивно целый сайт
|
||||||
|
wget -r -p -k --no-clobber example.com
|
||||||
|
|
||||||
|
# GUI для рекурсивного скачивания
|
||||||
|
httrack "https://example.com" -O ./out "+*.example.com/*"
|
||||||
|
```
|
||||||
|
|
||||||
|
примеры:
|
||||||
|
- nixos options: `monolith https://search.nixos.org/options -o options.html`
|
||||||
|
- сохранить доки: `wget -r -p -k nix-darwin.github.io/nix-darwin/manual/`
|
||||||
|
- monolith и httrack ставятся через `brew install monolith httrack`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue