docs: add a code snippet on how to do scrapling install from code
This commit is contained in:
@@ -367,11 +367,20 @@ This installation only includes the parser engine and its dependencies, without
|
|||||||
```bash
|
```bash
|
||||||
pip install "scrapling[fetchers]"
|
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.
|
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:
|
2. Extra features:
|
||||||
- Install the MCP server feature:
|
- Install the MCP server feature:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
+10
-1
@@ -364,11 +364,20 @@ pip install scrapling
|
|||||||
```bash
|
```bash
|
||||||
pip install "scrapling[fetchers]"
|
pip install "scrapling[fetchers]"
|
||||||
|
|
||||||
scrapling install
|
scrapling install # normal install
|
||||||
|
scrapling install --force # force reinstall
|
||||||
```
|
```
|
||||||
|
|
||||||
يقوم هذا بتنزيل جميع المتصفحات، إلى جانب تبعيات النظام وتبعيات معالجة fingerprint الخاصة بها.
|
يقوم هذا بتنزيل جميع المتصفحات، إلى جانب تبعيات النظام وتبعيات معالجة fingerprint الخاصة بها.
|
||||||
|
|
||||||
|
أو يمكنك تثبيتها من الكود بدلاً من تشغيل أمر كالتالي:
|
||||||
|
```python
|
||||||
|
from scrapling.cli import install
|
||||||
|
|
||||||
|
install([], standalone_mode=False) # normal install
|
||||||
|
install(["--force"], standalone_mode=False) # force reinstall
|
||||||
|
```
|
||||||
|
|
||||||
2. ميزات إضافية:
|
2. ميزات إضافية:
|
||||||
- تثبيت ميزة خادم MCP:
|
- تثبيت ميزة خادم MCP:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
+10
-1
@@ -364,11 +364,20 @@ pip install scrapling
|
|||||||
```bash
|
```bash
|
||||||
pip install "scrapling[fetchers]"
|
pip install "scrapling[fetchers]"
|
||||||
|
|
||||||
scrapling install
|
scrapling install # normal install
|
||||||
|
scrapling install --force # force reinstall
|
||||||
```
|
```
|
||||||
|
|
||||||
这会下载所有浏览器,以及它们的系统依赖项和fingerprint操作依赖项。
|
这会下载所有浏览器,以及它们的系统依赖项和fingerprint操作依赖项。
|
||||||
|
|
||||||
|
或者你可以从代码中安装,而不是运行命令:
|
||||||
|
```python
|
||||||
|
from scrapling.cli import install
|
||||||
|
|
||||||
|
install([], standalone_mode=False) # normal install
|
||||||
|
install(["--force"], standalone_mode=False) # force reinstall
|
||||||
|
```
|
||||||
|
|
||||||
2. 额外功能:
|
2. 额外功能:
|
||||||
- 安装MCP服务器功能:
|
- 安装MCP服务器功能:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
+10
-1
@@ -364,11 +364,20 @@ Diese Installation enthält nur die Parser-Engine und ihre Abhängigkeiten, ohne
|
|||||||
```bash
|
```bash
|
||||||
pip install "scrapling[fetchers]"
|
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.
|
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:
|
2. Zusätzliche Funktionen:
|
||||||
- MCP-Server-Funktion installieren:
|
- MCP-Server-Funktion installieren:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
+10
-1
@@ -364,11 +364,20 @@ Esta instalación solo incluye el motor de análisis y sus dependencias, sin nin
|
|||||||
```bash
|
```bash
|
||||||
pip install "scrapling[fetchers]"
|
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.
|
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:
|
2. Características adicionales:
|
||||||
- Instalar la característica del servidor MCP:
|
- Instalar la característica del servidor MCP:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
+10
-1
@@ -364,11 +364,20 @@ pip install scrapling
|
|||||||
```bash
|
```bash
|
||||||
pip install "scrapling[fetchers]"
|
pip install "scrapling[fetchers]"
|
||||||
|
|
||||||
scrapling install
|
scrapling install # normal install
|
||||||
|
scrapling install --force # force reinstall
|
||||||
```
|
```
|
||||||
|
|
||||||
これにより、すべてのブラウザ、およびそれらのシステム依存関係とfingerprint操作依存関係がダウンロードされます。
|
これにより、すべてのブラウザ、およびそれらのシステム依存関係とfingerprint操作依存関係がダウンロードされます。
|
||||||
|
|
||||||
|
または、コマンドを実行する代わりにコードからインストールすることもできます:
|
||||||
|
```python
|
||||||
|
from scrapling.cli import install
|
||||||
|
|
||||||
|
install([], standalone_mode=False) # normal install
|
||||||
|
install(["--force"], standalone_mode=False) # force reinstall
|
||||||
|
```
|
||||||
|
|
||||||
2. 追加機能:
|
2. 追加機能:
|
||||||
- MCPサーバー機能をインストール:
|
- MCPサーバー機能をインストール:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
+10
-1
@@ -364,11 +364,20 @@ pip install scrapling
|
|||||||
```bash
|
```bash
|
||||||
pip install "scrapling[fetchers]"
|
pip install "scrapling[fetchers]"
|
||||||
|
|
||||||
scrapling install
|
scrapling install # normal install
|
||||||
|
scrapling install --force # force reinstall
|
||||||
```
|
```
|
||||||
|
|
||||||
Это загрузит все браузеры вместе с их системными зависимостями и зависимостями для манипуляции fingerprint'ами.
|
Это загрузит все браузеры вместе с их системными зависимостями и зависимостями для манипуляции fingerprint'ами.
|
||||||
|
|
||||||
|
Или вы можете установить их из кода вместо выполнения команды:
|
||||||
|
```python
|
||||||
|
from scrapling.cli import install
|
||||||
|
|
||||||
|
install([], standalone_mode=False) # normal install
|
||||||
|
install(["--force"], standalone_mode=False) # force reinstall
|
||||||
|
```
|
||||||
|
|
||||||
2. Дополнительные возможности:
|
2. Дополнительные возможности:
|
||||||
- Установить функцию MCP-сервера:
|
- Установить функцию MCP-сервера:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
+10
-1
@@ -154,11 +154,20 @@ This installation only includes the parser engine and its dependencies, without
|
|||||||
```bash
|
```bash
|
||||||
pip install "scrapling[fetchers]"
|
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.
|
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:
|
2. Extra features:
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user