Skip to content

Commit

Permalink
fix cookies file arg is path
Browse files Browse the repository at this point in the history
  • Loading branch information
pirate committed Jan 21, 2021
1 parent 6c35b12 commit ef7711f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pip.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build pip package
name: Build Pip package

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion archivebox/extractors/wget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']),
Expand Down

0 comments on commit ef7711f

Please sign in to comment.