build: Move click library to be part of the fetchers extra

This commit is contained in:
Karim shoair
2025-09-14 20:32:46 +03:00
parent eae088a07b
commit fdac239fcc
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -7,7 +7,13 @@ from scrapling.core.utils import log, _CookieParser, _ParseHeaders
from scrapling.core._types import List, Optional, Dict, Tuple, Any, Callable
from orjson import loads as json_loads, JSONDecodeError
from click import command, option, Choice, group, argument
try:
from click import command, option, Choice, group, argument
except ImportError:
raise ImportError(
"You need to install scrapling with any of the extras to enable Shell commands. See: https://scrapling.readthedocs.io/en/latest/#installation"
)
__OUTPUT_FILE_HELP__ = "The output file path can be an HTML file, a Markdown file of the HTML content, or the text content itself. Use file extensions (`.html`/`.md`/`.txt`) respectively."
__PACKAGE_DIR__ = Path(__file__).parent