Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Test Stash scrapers in Stash quickly and efficiently.

Notifications You must be signed in to change notification settings

peolic/stash-scraper-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.2
  • requests >= 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

About

Test Stash scrapers in Stash quickly and efficiently.

Topics

Resources

Stars

Watchers

Forks

Languages