[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/jp/ - Otaku Culture


View post   

File: 493 KB, 2048x1536, 1228366441879.jpg [View same] [iqdb] [saucenao] [google]
1721442 No.1721442 [Reply] [Original]

Hello /jp/, this topic is picture related.
There was a danbooru leecher script for python that was posted a while back. Does anyone have a python script that downloads images off of danbooru?

Pic related, its me and my waifu.

>> No.1721463

I lol'd.

>> No.1721466
File: 42 KB, 640x480, 1228544738822.jpg [View same] [iqdb] [saucenao] [google]
1721466

>>1721442

>> No.1721488

Cool watermark bro

>> No.1721579

Is the Javascript one fine too?

┐(´ー`)┌

>> No.1721944

>>1721579

There was specifically a python one, but I guess I could look at the javascript one...

>> No.1721957

>>1721944
http://rapidshare.com/files/170353647/danbooru_script.rar

>> No.1721995

You mean perl.

>> No.1721998

Here, have a perl script from AoRF.

http://muon.us/mirror/booru.rar

I still need to apply the patch for Gelbooru, but it'll work for Danbooru.

>> No.1722020

>>1721957

does this limit the files downloaded to 100? It appears so.

>> No.1722022

>>1721998
Reupped, Gelbooru fixed.

There might have been an error still in the Danbooru bit, so I'd redownload if you have already.

>> No.1722054

>>1722022

so i now have perl installed, how do I work this utility?

>> No.1722061

>>1722054
The rar has two files, one being called instructions.txt with instructions in it.

>> No.1722070

>>1722061

that's the one with python, which i understand.

i'm asking about the perl one.

>> No.1722088

>>1722061
That's a different .rar.

I'll assume you've never worked with the command line before.
Hit Windows+R, type in cmd, hit ok. (Alternative step: download cygwin for a non-terrible CLI)
Navigate to the folder booru.pl is in (eg: cd c:\booru\)
Type ``perl booru.pl" to see the list of options.
An example of using this would be:
perl booru.pl danbooru celes_chere -l=100

>> No.1722093

>>1722088
>>1722070
Right, my fault sorry.

>> No.1722119

>>1722088
>>1722088

looks like it works, but what is with the filenames? they appear different from the danbooru file names.

Does this have to do with the -f function? How is that used?

Everything else I think I get.

>> No.1722123

>>1722119
If you want them to match Danbooru filenames, use -f=${md5}

>> No.1722143

>>1722123

Thank you, I fully understand how to use this now!

>>
Name
E-mail
Subject
Comment
Action