Danbooru-cpp-grabber is a project mainly written in C++ and C, it's free.
danbooru grabber written in cpp