This commit is contained in:
misha 2020-04-15 11:54:53 +03:00
parent bb580533f7
commit 1aa2a5b069
3 changed files with 4 additions and 1 deletions

View file

@ -30,6 +30,7 @@ from config import (
OUTPUT_DIR,
GIT_DOMAINS,
GIT_SHA,
RESTRICT_FILE_NAMES,
CURL_USER_AGENT,
WGET_USER_AGENT,
CHECK_SSL_VALIDITY,
@ -227,7 +228,7 @@ def fetch_wget(link_dir, link, timeout=TIMEOUT):
'--span-hosts',
'--no-parent',
'-e', 'robots=off',
'--restrict-file-names=nocontrol',
*(('--restrict-file-names={}'.format(RESTRICT_FILE_NAMES),) if RESTRICT_FILE_NAMES else ()),
'--timeout={}'.format(timeout),
*(('--compression=auto',) if WGET_AUTO_COMPRESSION else ()),
*(() if FETCH_WARC else ('--timestamping',)),