mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
Update fetch.py
This commit is contained in:
parent
3d261c4734
commit
e37401d74b
1 changed files with 1 additions and 1 deletions
2
fetch.py
2
fetch.py
|
@ -33,7 +33,7 @@ def fetch_wget(out_dir, link, overwrite=False, requisites=True, timeout=TIMEOUT)
|
||||||
CMD = [
|
CMD = [
|
||||||
*'wget --timestamping --adjust-extension --no-parent'.split(' '), # Docs: https://www.gnu.org/software/wget/manual/wget.html
|
*'wget --timestamping --adjust-extension --no-parent'.split(' '), # Docs: https://www.gnu.org/software/wget/manual/wget.html
|
||||||
*(('--page-requisites', '--convert-links') if requisites else ()),
|
*(('--page-requisites', '--convert-links') if requisites else ()),
|
||||||
*(('--user-agent="{}"'.format(WGET_USER_AGENT), '') if WGET_USER_AGENT else ()),
|
*(('--user-agent="{}"'.format(WGET_USER_AGENT),) if WGET_USER_AGENT else ()),
|
||||||
link['url'],
|
link['url'],
|
||||||
]
|
]
|
||||||
end = progress(timeout, prefix=' ')
|
end = progress(timeout, prefix=' ')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue