Extract and clean Danbooru artist tags into a CSV file for AI image generation workflows.
- Python >= 3.12
- uv (package manager)
uv syncDownload tags.parquet
- Place
tags.parquetin the project root. - Run the script:
uv run python main.py- Output:
danbooru_tags_artists.csv
| Column | Description |
|---|---|
tag |
Artist name (underscores → spaces) |
category |
Always 1 (artist) |
count |
Number of posts tagged with this artist |
alias |
Reserved (empty) |
Rows are sorted by count descending.
Edit the constants at the top of main.py:
| Constant | Default | Description |
|---|---|---|
MIN_POST_COUNT |
10 |
Drop artists with fewer posts |
BLACKLIST |
['banned_artist'] |
Tag names to always exclude |
USE_SPACE_INSTEAD_OF_UNDERSCORE |
True |
Replace _ with space in artist names |