Danbooru

Batch download a tag set

Posted under General

Well Granola, it maight be a stupid question, but is it possible to merge tags from danbooru website in iptc files downloaded with the script ? For example, a picture of Mai Shiranui would be directly marked with the SNK and King of fighters tags directly in the jpg file. It would be very useful to find particular pictures amongst downloaded ones.

Probably not as it is. You can probably just save the file into another directory using the path, and find the specific file in there.

But as far as I know I dont think it can be renamed with the tags attached, would probably exceed file name size in any case.

Kawai-Taiga said:
ok i get this "cant use string ("couldnt get http://danbooru.domn") as a hash ref while "strict refs" in use at booru.pl line 95"

I get that with Danbooru as well. When I try Gelbooru, I simply get "Nobody here but us chickens!"

I got it to work for Danbooru, but the same issue still stands with gel.

The fix for danbooru was in file naming. It needs to be "f=${md5}" with the dollar sign there

AndarielHalo said:
I get that with Danbooru as well. When I try Gelbooru, I simply get "Nobody here but us chickens!"

I got it to work for Danbooru, but the same issue still stands with gel.

The fix for danbooru was in file naming. It needs to be "f=${md5}" with the dollar sign there

humm well as u see above post what i writed

btw if some one can help me here is my msn it would talk easyer then trough the forum also im at irc rizon channels, #eclipse, #yuki, #News, #Nibl, Thoranime

my msn is chibiixhigo@gmail.com

btw about resume , does this also take hours to recheck or not ? im planning to update once a week the current folders like touhou and suzumiya haruhi, theyre pretty big

oh yea one more thing does this perl thing logs ? couse my isp is instabl it can dc sometimes and i wanna know if it miss anything

Updated

This takes maybe 30 seconds to check for existing filenames.

Try putting it in this way.

perl booru.pl danbooru vocaloid -r=3 -f=${md5} -p="i:\Vocaloid_Test" -u=Kawai-Taiga -w=*****

All on one line.

It seems to matter if you put your username/login at the end. So put it at the end.

As for the logging, I don't think it does. Just run it more than once.

One thing I noticed for Gelbooru is that they are currently running a beta version of their board software (feel free to correct me if I'm wrong). This is probably why it comes up with the "Nobody here but us chickens!", along with errors upon trying to log in. The current script probably needs to be updated to account for this, I believe.

yea it works now a few hours , downloading 5 tags at once is that bad ? , idont know if this tool keeps an log for itself

CurtainFireMagician said:
One thing I noticed for Gelbooru is that they are currently running a beta version of their board software (feel free to correct me if I'm wrong). This is probably why it comes up with the "Nobody here but us chickens!", along with errors upon trying to log in. The current script probably needs to be updated to account for this, I believe.

"Nobody here but us chickens!" means eighter that its finished or there's no image in that folder , or folder dont exist, danbooru has the same dont foget once you use a tag like suzumiya haruhi to add "_" suzumiya_haruhi, boards like danbooru are sensitive for things like that

AndarielHalo said:
Is there any way to make it so it saves the pictures with their original uploaded date created?

I don't know, if you look at the code there may be a way.

CurtainFireMagician said:
One thing I noticed for Gelbooru is that they are currently running a beta version of their board software (feel free to correct me if I'm wrong). This is probably why it comes up with the "Nobody here but us chickens!", along with errors upon trying to log in. The current script probably needs to be updated to account for this, I believe.

If you can fix this, let me know or post it here. The gelbooru script is supposedly 4 generations old.

Kawai-Taiga said:
yea it works now a few hours , downloading 5 tags at once is that bad ?

In my experience, this tool will only let you do what your account can already do. There is a two tag limit for members. I would limit your tag searches to less than two.

Bug report
I have noticed that when using the argument with > (such as "blazblue score:>4" There will be no displayed text on the prompt. However, the images will still be downloaded.

i did 12 tags yesterday tobad its so slow though took like 3/4 day to complete them, i mean i has a 120/10mbit downloading an image cant take this long , but sofar it works great

oh and btw is there a line to get all images instead useing "-l=10000"

Fencedude said:
I was running this search:

perl booru.pl danbooru black_rock_shooter -f=${md5} -p="F:\Anime Images\B\Black Rock Shooter"

And it downloaded ~100 images, and then quit. Now it won't work at all for me.

Are you using the new version of booru.pl? I put a v1.2 somewhere in this thread.

Add your username and password to the end of the line.

perl booru.pl danbooru black_rock_shooter -f=${md5} -p="F:\Anime Images\B\Black Rock Shooter" -u=fencedude -w=YOURPASSWORD

1 2 3 4 5 6 7 9