hkjh
This commit is contained in:
10
readme.md
10
readme.md
@@ -18,11 +18,14 @@ python -m pip install -r requirements.txt
|
||||
# Automated setup (recommended): run the single Python setup script which installs
|
||||
# all Python dependencies (from requirements.txt) and downloads Playwright browsers.
|
||||
# Usage:
|
||||
python ./scripts/setup.py
|
||||
# - Default: python ./scripts/setup.py # installs Chromium only (saves disk)
|
||||
# - To install all Playwright engines: python ./scripts/setup.py --browsers all
|
||||
|
||||
# Advanced options:
|
||||
# - Skip dependency installation: python ./scripts/setup.py --skip-deps
|
||||
# - Install only Playwright browsers: python ./scripts/setup.py --playwright-only
|
||||
# - Install only specific browsers (saves disk): python ./scripts/setup.py --browsers chromium
|
||||
# - Example: install only Chromium browsers: python ./scripts/setup.py --playwright-only --browsers chromium
|
||||
```
|
||||
2. Copy or edit `config.conf` and set a required `temp` directory where intermediate files are written. Example:
|
||||
|
||||
@@ -93,7 +96,10 @@ download-media [URL] | add-file -store hydrus
|
||||
|
||||
## Troubleshooting & tips 🛠️
|
||||
- If a cmdlet complains about an unknown store, ensure the piped item has a valid local `path` or use `-store <name>` to target a configured backend.
|
||||
- For Playwright screenshots, run `playwright install` after installing the package to download browser binaries.
|
||||
- For Playwright screenshots, run `python ./scripts/setup.py` (installs Chromium by default to save download space). To install all engines, run `python ./scripts/setup.py --browsers all`.
|
||||
- Note: the `screen-shot` cmdlet forces the Playwright **Chromium** engine and will not use Firefox or WebKit.
|
||||
- To run tests locally after removing `tests/conftest.py`, install the project in editable mode first so tests can import the package: `python -m pip install -e .` or run `python ./scripts/setup.py --install-editable`.
|
||||
- Deno: this setup script now **installs Deno by default**. To opt out, run `python ./scripts/setup.py --no-deno`. You can still pin a version: `python ./scripts/setup.py --deno-version v1.34.3`.
|
||||
- Use `--debug` to enable verbose logs when tracking down an error.
|
||||
|
||||
## Contributing & docs ✨
|
||||
|
||||
Reference in New Issue
Block a user