1
0
Fork 0
mirror of synced 2024-06-28 02:50:24 +12:00

feat: Add curl command on readability as default command to debug

This commit is contained in:
Cristian 2020-09-01 10:16:24 -05:00
parent bf3ea42141
commit 66037535fd

View file

@ -16,6 +16,7 @@ from ..util import (
)
from ..config import (
TIMEOUT,
CURL_BINARY,
SAVE_READABILITY,
DEPENDENCIES,
READABILITY_VERSION,
@ -65,7 +66,10 @@ def save_readability(link: Link, out_dir: Optional[str]=None, timeout: int=TIMEO
# Readability Docs: https://github.com/mozilla/readability
status = 'succeeded'
cmd = []
cmd = [
CURL_BINARY,
link.url
]
timer = TimedProgress(timeout, prefix=' ')
try:
document = get_html(link, out_dir)