mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
cleanup wget options
This commit is contained in:
parent
c4c8da3deb
commit
fbb8823e86
1 changed files with 3 additions and 2 deletions
|
@ -183,8 +183,9 @@ def fetch_wget(link_dir, link, requisites=FETCH_WGET_REQUISITES, timeout=TIMEOUT
|
||||||
return {'output': html_appended_url(link), 'status': 'skipped'}
|
return {'output': html_appended_url(link), 'status': 'skipped'}
|
||||||
|
|
||||||
CMD = [
|
CMD = [
|
||||||
*'wget --timestamping --adjust-extension --no-parent'.split(' '), # Docs: https://www.gnu.org/software/wget/manual/wget.html
|
# WGET CLI Docs: https://www.gnu.org/software/wget/manual/wget.html
|
||||||
*(('--page-requisites', '--convert-links') if FETCH_WGET_REQUISITES else ()),
|
*'wget -N -E -np -x -H -k -K -S --restrict-file-names=unix'.split(' '),
|
||||||
|
*(('-p',) if FETCH_WGET_REQUISITES else ()),
|
||||||
*(('--user-agent="{}"'.format(WGET_USER_AGENT),) if WGET_USER_AGENT else ()),
|
*(('--user-agent="{}"'.format(WGET_USER_AGENT),) if WGET_USER_AGENT else ()),
|
||||||
*((() if CHECK_SSL_VALIDITY else ('--no-check-certificate',))),
|
*((() if CHECK_SSL_VALIDITY else ('--no-check-certificate',))),
|
||||||
link['url'],
|
link['url'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue