Просмотр исходного кода

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

Cristian 5 лет назад
Родитель
Сommit
66037535fd
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      archivebox/extractors/readability.py

+ 5 - 1
archivebox/extractors/readability.py

@@ -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)