Stash Scraper Tester
Test scrapers in Stash quickly and efficiently.
Requirements
- Python 3.8 (should work with >= 3.6)
Pillow
>= 8.0.0 (for displaying the scraped image)PyYAML
>= 5.2requests
>= 2.20.0
pip install -r requirements.txt
Usage
scrape_url.py [-h] [-c CONFIG] [-p PASSWORD] [-t {scene,movie,gallery}] [-nr] [-l] [urls]
positional arguments:
urls URL(s) to scrape - one per line,
a path to a list file (with `--list`),
or nothing for continuous input.
optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
Stash config path.
-p PASSWORD, --password PASSWORD
Stash password, if set. Required in order to use GraphQL.
-t {scene,movie,gallery}, --type {scene,movie,gallery}
Type of scraped object (default is "scene").
-nr, --no-reload Disable reloading the scrapers and clearing the scraper cache before scraping.
-l, --list Load URLs list from the provided list file path.
Example:
python scrape_url.py https://example.com/scenes/1234