>>89
It's already been done for all the 2hu characters, Kasen ended up with the highest lewd ratio. The original posts are on /jp/ somewhere.
https://files.catbox.moe/kst661.jpg
That said, the answer is "trivial." Just hit the https://danbooru.donmai.us/counts/posts.json?tags=hakurei_reimu+rating:s endpoint a few times with whatever tags & metatags you want