|
@@ -16,6 +16,7 @@ from ..util import (
|
|
|
)
|
|
)
|
|
|
from ..config import (
|
|
from ..config import (
|
|
|
TIMEOUT,
|
|
TIMEOUT,
|
|
|
|
|
+ CURL_BINARY,
|
|
|
SAVE_READABILITY,
|
|
SAVE_READABILITY,
|
|
|
DEPENDENCIES,
|
|
DEPENDENCIES,
|
|
|
READABILITY_VERSION,
|
|
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
|
|
# Readability Docs: https://github.com/mozilla/readability
|
|
|
|
|
|
|
|
status = 'succeeded'
|
|
status = 'succeeded'
|
|
|
- cmd = []
|
|
|
|
|
|
|
+ cmd = [
|
|
|
|
|
+ CURL_BINARY,
|
|
|
|
|
+ link.url
|
|
|
|
|
+ ]
|
|
|
timer = TimedProgress(timeout, prefix=' ')
|
|
timer = TimedProgress(timeout, prefix=' ')
|
|
|
try:
|
|
try:
|
|
|
document = get_html(link, out_dir)
|
|
document = get_html(link, out_dir)
|