I wrote a script to download pictures from servers that run danbooru.
So what does it do?
You tell the script a tag or more and it will download every picture from danbooru that is tagged with it.
Its quite simple, but i'm not sure if there is any need for it ^^'
whats possible :
- rename the pictures after tags
( normal :3dc1a88fedbaaa204f7d47468b7e7e4b.png
or tagged: brown_hair+horo+kazami_karasu+solo+spice_and_wolf.png )
- download from: http://danbooru.donmai.us , http://moe.imouto.org , http://konachan.com and http://behoimi.org
- set start and end page: if you search for "horo" you will get about 36 pages,
if thats too much you can download only the first 10, or download from page 15 to 23, whatever
The script is written in perl, so in order to use is you will need a perl interpreter.
If you are running Linux or an *nix system you should have it already,
but if you use Windows you will need Activeperl, you can get it
here
Just install it and use default options.
Then download the horo.zip , unzip it somewhere, doesn't matter where, just keep sure the three files are in the same folder.
Now start a shell/console/bash whatever ( depends on you system ).
For a first try navigate to the folder with the script.
There you can start using the script.
using script : chiaki.pl [options] "search"
the options are:
--tag for name the pictures after tags
--min=XX to set a start page XX
--max=XX to set an end page XX
--server=whatever to select server
Servers are: moe , kona, behoi and default is danbooru
A few examples:
without any options :
chiaki.pl "horo fang apple"
-> that will create a folder "horo+fang+apple" and download about 13 pictures of horo ^^
with options:
chiaki.pl --tag --server=kona --min=2 --max=3 "dark"
-> that will create a folder "dark" with about 30 pictures from page 2 to 3 download from the server konachan.com
if you are using linux tip ./chiaki.pl instead of chiaki.pl
the pictures will be download to the folder where you execute the script.
you can start more the one search
( like chiaki.pl "horo" "dark" --server=kona that will download
every picture tagged with horo and every picture tagged dark, to separate folders)
the order of the options and search doesn't matter
I wrote a lot, but its not that difficult ...i hope ^^'
feel free to ask
So i like to hear your opinion about that all, if you like it or think its non-sense.
And if you know perl and have free time , take a peek at the code and tell me what you think about it
script
- schlicht