This is a public repository containing scrapers created by the Stash Community.
To download the scrapers you can clone the git repo or download directly any of the scrapers.
When downloading directly click at the scraper.yml you want and then make sure to click the raw button:
and then save page as file from the browser to preserve the correct format for the yml file.
Any scraper file has to be stored in the ~/.stash/scrapers
( ~/.stash is where the config and database file are located) directory. If the scrapers
directory is not there it needs to be created.
After updating the scrapers directory contents or editing a scraper file a restart of stash is needed and a refresh of the edit scene/performer page.(In recent stash builds instead of restarting scrape with -> reload scrapers is enough)
Some sites block content if the user agent is not valid. If you get some kind of blocked or denied message make sure to configure the Scraping -> Scraper User Agent
setting in stash. Valid strings e.g. for firefox can be found here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox . Scrapers for those sites should have a comment mentioning this along with a tested and working user agent string
Scrapers with useCDP set to true require that you have properly configured the Chrome CDP path
setting in Stash. If you decide to use a remote instance the headless chromium docker image from https://hub.docker.com/r/chromedp/headless-shell/ is highly recommended.
You can find a list of sites currently supported for by community scraping in SCRAPERS-LIST.md
For most scrapers you have to edit the url. Once you populate that field with a specific url a button will appear.
Clicking on that button brings up a popup that lets you select which fields to update.
Some scrapers support the scrape with function so you can you use that instead of adding a url.
Contributions are always welcome! Use the Scraping Configuration wiki entry to get started and stop by the Discord #the-scraping-initiative channel with any questions.
The scrapers in this repository can be validated against a schema and checked for common errors.
First, install the validator's dependencies - inside the ./validator
folder, run: yarn
.
Then, to run the validator, use node validate.js
in the root of the repository.
Specific scrapers can be checked using: node validate.js scrapers/foo.yml scrapers/bar.yml