| Summary | A Python tool to fetch tag information from StashDB and transfer it directly to your local Stash instance. | |
| Repository | https://github.com/thismanyboyfriends2/stash-tag-scraper |
Features
Instead of manually syncing your tag descriptions, aliases, and categories between your local Stash instance and StashDB, this tool automatically fetches all that information and populates it for you.
- Fast GraphQL-based fetching: Downloads ~3000 tags in seconds
- Smart deduplication: Avoids creating duplicate tags
- Alias management: Creates tag aliases while preventing conflicts
- Category hierarchies: Creates parent-child relationships between tags and categories
- Conflict logging: Saves skipped aliases to JSON for manual review
Installation & Running
The following instructions assume you are on a Linux / MacOS / WSL installation.
- Clone the repository:
git clone https://github.com/thismanyboyfriends2/stash-tag-scraper.git
cd stash-tag-scraper
- Install dependencies:
pip install -r requirements.txt
- Set your StashDB API key:
export STASHDB_API_KEY="your-api-key-here"
Alternatively, create a .env file (see .env.example).
- Then simply run the script:
python ./src/main.py