docs: add a code snippet on how to do scrapling install from code
This commit is contained in:
+10
-1
@@ -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:
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user