close

qqeor said:
But it seems to be broken with the current version of Danbooru...

Change the address on line 82 and it works just fine, actually.

This script could use some improvement, but it's a decent starting point at least.