-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmirrorweb
More file actions
executable file
·34 lines (32 loc) · 1.16 KB
/
mirrorweb
File metadata and controls
executable file
·34 lines (32 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
wget \
--mirror \
--page-requisites \
--html-extension \
--restrict-file-names=windows \
--convert-links \
--waitretry=30 \
$1
# --random-wait \
# --wait=1 \
# --limit-rate=10k \
# --no-clobber \
# --domains website.org \
# --no-parent \
#The options are:
#--mirror: recursive mirroring with infinite depth
#--domains website.org: don't follow links outside website.org.
#--no-parent: don't follow links outside the directory tutorials/html/.
#--page-requisites: get all the elements that compose the page
# (images, CSS and so on).
#--html-extension: save files with the .html extension.
#--convert-links: convert links so that they work locally, off-line.
#--restrict-file-names=windows: modify filenames so that they will
# work in Windows as well.
#--no-clobber: don't overwrite any existing files
# (used in case the download is interrupted and resumed).
#--limit-rate: Limit download speed
#--wait: wait n seconds between retrievals
#--random-wait: wait between 0.5 to 1.5 seconds between retrievals
#--waitretry: use linear backoff - wait 1 second after first failure,
# 2 seconds after second ut to defined value