From ef7711ffa0f8c3a8db73811953160a49102bff04 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 20 Jan 2021 19:13:53 -0500 Subject: [PATCH] fix cookies file arg is path --- .github/workflows/pip.yml | 2 +- archivebox/extractors/wget.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pip.yml b/.github/workflows/pip.yml index 36153189..8d8e3f91 100644 --- a/.github/workflows/pip.yml +++ b/.github/workflows/pip.yml @@ -1,4 +1,4 @@ -name: Build pip package +name: Build Pip package on: workflow_dispatch: diff --git a/archivebox/extractors/wget.py b/archivebox/extractors/wget.py index b7adbea0..ec252123 100644 --- a/archivebox/extractors/wget.py +++ b/archivebox/extractors/wget.py @@ -66,7 +66,7 @@ def save_wget(link: Link, out_dir: Optional[Path]=None, timeout: int=TIMEOUT) -> *(['--warc-file={}'.format(str(warc_path))] if SAVE_WARC else []), *(['--page-requisites'] if SAVE_WGET_REQUISITES else []), *(['--user-agent={}'.format(WGET_USER_AGENT)] if WGET_USER_AGENT else []), - *(['--load-cookies', COOKIES_FILE] if COOKIES_FILE else []), + *(['--load-cookies', str(COOKIES_FILE)] if COOKIES_FILE else []), *(['--compression=auto'] if WGET_AUTO_COMPRESSION else []), *([] if SAVE_WARC else ['--timestamping']), *([] if CHECK_SSL_VALIDITY else ['--no-check-certificate', '--no-hsts']),