Danbooru

Batch DOWNLOAD possible?

Posted under General

Hello,

I wanna ask if there is a way to download LOSSLESSLY by a TAG or multiple TAGS. But one tag would be just sufficient. Lets say i wanna download all media of lets say belfast_(azur_lane) and there are like 2,5k pictures. Id like to somehow download all of them at once (including GIF,Video, whatever it is). Is it possible? I am a software dev, and in my mind i find it very possible, but i know very little about how Frontend works, and i have no knowledge of selenium python or other scripting stuff... Please tell me somethin already exists. Or any way to somehow selectively download the Danbooru database? Or maybe through some REST API??? idk .... Please i wanna know. <3 much thanks! (treat me as a complete noob if you have a solution, explain every detail)

markedone66 said:

Or maybe through some REST API???

Danbooru does have some kind of REST-like API implemented that you could use.
Documentation can be found here: /wiki_pages/help:api

GabrielWB said:

Danbooru does have some kind of REST-like API implemented that you could use.
Documentation can be found here: /wiki_pages/help:api

Well theres only API for POST, PUT and DELETE. basically for contributors.

markedone66 said:

Well theres only API for POST, PUT and DELETE. basically for contributors.

Please read the following sentence too.

help:api said:

HTTP defines four basic request methods: GET, POST, PUT and DELETE. You'll be using these methods to interact with the Danbooru API. Most API calls that change the state of the database (like creating, updating, or deleting something) require an HTTP POST, PUT or DELETE call. API calls that only retrieve data can typically be done with an HTTP GET call.

Perform a HTTP GET on /posts.xml?tags=belfast_(azur_lane) to retrieve the 20 newest Belfast posts as XML.

  • 1