Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

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

Karim shoairef29568cd099
diff --git a/README.md b/README.md
index 56e852d..5b4ca2c 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/docs/README_AR.md b/docs/README_AR.md
index e8486fc..d5f525c 100644
--- a/docs/README_AR.md
+++ b/docs/README_AR.md
@@ -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
diff --git a/docs/README_CN.md b/docs/README_CN.md
index c54af53..b18bff3 100644
--- a/docs/README_CN.md
+++ b/docs/README_CN.md
@@ -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
diff --git a/docs/README_DE.md b/docs/README_DE.md
index c6d52bc..4772d7f 100644
--- a/docs/README_DE.md
+++ b/docs/README_DE.md
@@ -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
diff --git a/docs/README_ES.md b/docs/README_ES.md
index adcb887..7037dd5 100644
--- a/docs/README_ES.md
+++ b/docs/README_ES.md
@@ -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
diff --git a/docs/README_JP.md b/docs/README_JP.md
index 47d3f66..890e049 100644
--- a/docs/README_JP.md
+++ b/docs/README_JP.md
@@ -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
diff --git a/docs/README_RU.md b/docs/README_RU.md
index bae6392..091244c 100644
--- a/docs/README_RU.md
+++ b/docs/README_RU.md
@@ -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
diff --git a/docs/index.md b/docs/index.md
index 15f7b5d..2bafd80 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -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: