Skip to content

Instantly share code, notes, and snippets.

View bem13's full-sized avatar

Marcell Bernát bem13

  • Budapest, Hungary
View GitHub Profile
@bem13
bem13 / danbooru_tags_post_count.csv
Created February 9, 2024 13:23
Updated Danbooru tag list and counts for ComfyUI-Custom-Scripts
We can't make this file beautiful and searchable because it's too large.
1girl,5097077
solo,4239795
highres,4126234
long_hair,3633168
commentary_request,2905337
breasts,2880464
looking_at_viewer,2686264
blush,2488079
smile,2357612
open_mouth,1943718
@bem13
bem13 / danbooru_tag_count_scraper.py
Created February 9, 2024 13:15
Danbooru tag count scraper Python script
import requests
import csv
import time
# Base URL without the page parameter
base_url = 'https://danbooru.donmai.us/tags.json?limit=1000&search[hide_empty]=yes&search[is_deprecated]=no&search[order]=count'
# Specify the filename for the CSV
csv_filename = 'danbooru_tags_post_count.csv'