5 fpath=($cmds/functions.zsh $fpath)
8 [[ -n "$dst" ]] || { dst=warcs ; dst=$dst:a }
10 autoload url-to-filename
11 zmodload -F zsh/datetime b:strftime
14 --user-agent="$FEEDER_USER_AGENT"
23 [[ "$line" != "" ]] || break
25 [[ $cols[1] = "X-URL:" ]] || continue
29 # Lazy temporary file creation
31 trap "rm -f $tmp" HUP PIPE INT QUIT TERM EXIT
32 wget_opts=(--output-document=$tmp $wget_opts)
34 fn=$(strftime %Y%m%d-%H%M%S)-$(url-to-filename $url)
35 ${=WGET} $wget_opts --output-file=warcs.log --warc-file=$dst/$fn $url
36 $FEEDER_WARC_COMPRESS $dst/$fn.warc