docs: add a code snippet on how to do scrapling install from code

This commit is contained in:
Karim shoair
2026-02-27 01:17:54 +02:00
parent 5f885ae5f5
commit ef29568cd0
8 changed files with 80 additions and 8 deletions
+10 -1
View File
@@ -367,11 +367,20 @@ This installation only includes the parser engine and its dependencies, without
```bash
pip install "scrapling[fetchers]"
scrapling install
scrapling install # normal install
scrapling install --force # force reinstall
```
This downloads all browsers, along with their system dependencies and fingerprint manipulation dependencies.
Or you can install them from the code instead of running a command like this:
```python
from scrapling.cli import install
install([], standalone_mode=False) # normal install
install(["--force"], standalone_mode=False) # force reinstall
```
2. Extra features:
- Install the MCP server feature:
```bash
+10 -1
View File
@@ -364,11 +364,20 @@ pip install scrapling
```bash
pip install "scrapling[fetchers]"
scrapling install
scrapling install # normal install
scrapling install --force # force reinstall
```
يقوم هذا بتنزيل جميع المتصفحات، إلى جانب تبعيات النظام وتبعيات معالجة fingerprint الخاصة بها.
أو يمكنك تثبيتها من الكود بدلاً من تشغيل أمر كالتالي:
```python
from scrapling.cli import install
install([], standalone_mode=False) # normal install
install(["--force"], standalone_mode=False) # force reinstall
```
2. ميزات إضافية:
- تثبيت ميزة خادم MCP:
```bash
+10 -1
View File
@@ -364,11 +364,20 @@ pip install scrapling
```bash
pip install "scrapling[fetchers]"
scrapling install
scrapling install # normal install
scrapling install --force # force reinstall
```
这会下载所有浏览器,以及它们的系统依赖项和fingerprint操作依赖项。
或者你可以从代码中安装,而不是运行命令:
```python
from scrapling.cli import install
install([], standalone_mode=False) # normal install
install(["--force"], standalone_mode=False) # force reinstall
```
2. 额外功能:
- 安装MCP服务器功能:
```bash
+10 -1
View File
@@ -364,11 +364,20 @@ Diese Installation enthält nur die Parser-Engine und ihre Abhängigkeiten, ohne
```bash
pip install "scrapling[fetchers]"
scrapling install
scrapling install # normal install
scrapling install --force # force reinstall
```
Dies lädt alle Browser zusammen mit ihren Systemabhängigkeiten und Fingerprint-Manipulationsabhängigkeiten herunter.
Oder Sie können sie aus dem Code heraus installieren, anstatt einen Befehl auszuführen:
```python
from scrapling.cli import install
install([], standalone_mode=False) # normal install
install(["--force"], standalone_mode=False) # force reinstall
```
2. Zusätzliche Funktionen:
- MCP-Server-Funktion installieren:
```bash
+10 -1
View File
@@ -364,11 +364,20 @@ Esta instalación solo incluye el motor de análisis y sus dependencias, sin nin
```bash
pip install "scrapling[fetchers]"
scrapling install
scrapling install # normal install
scrapling install --force # force reinstall
```
Esto descarga todos los navegadores, junto con sus dependencias del sistema y dependencias de manipulación de fingerprint.
O puedes instalarlos desde el código en lugar de ejecutar un comando:
```python
from scrapling.cli import install
install([], standalone_mode=False) # normal install
install(["--force"], standalone_mode=False) # force reinstall
```
2. Características adicionales:
- Instalar la característica del servidor MCP:
```bash
+10 -1
View File
@@ -364,11 +364,20 @@ pip install scrapling
```bash
pip install "scrapling[fetchers]"
scrapling install
scrapling install # normal install
scrapling install --force # force reinstall
```
これにより、すべてのブラウザ、およびそれらのシステム依存関係とfingerprint操作依存関係がダウンロードされます。
または、コマンドを実行する代わりにコードからインストールすることもできます:
```python
from scrapling.cli import install
install([], standalone_mode=False) # normal install
install(["--force"], standalone_mode=False) # force reinstall
```
2. 追加機能:
- MCPサーバー機能をインストール:
```bash
+10 -1
View File
@@ -364,11 +364,20 @@ pip install scrapling
```bash
pip install "scrapling[fetchers]"
scrapling install
scrapling install # normal install
scrapling install --force # force reinstall
```
Это загрузит все браузеры вместе с их системными зависимостями и зависимостями для манипуляции fingerprint'ами.
Или вы можете установить их из кода вместо выполнения команды:
```python
from scrapling.cli import install
install([], standalone_mode=False) # normal install
install(["--force"], standalone_mode=False) # force reinstall
```
2. Дополнительные возможности:
- Установить функцию MCP-сервера:
```bash
+10 -1
View File
@@ -154,11 +154,20 @@ This installation only includes the parser engine and its dependencies, without
```bash
pip install "scrapling[fetchers]"
scrapling install
scrapling install # normal install
scrapling install --force # force reinstall
```
This downloads all browsers, along with their system dependencies and fingerprint manipulation dependencies.
Or you can install them from the code instead of running a command like this:
```python
from scrapling.cli import install
install([], standalone_mode=False) # normal install
install(["--force"], standalone_mode=False) # force reinstall
```
2. Extra features: