Change Log for DanbooruDownloader20160117
- Fix Issue #70: Update url handler for rule34.xxx.
- Fix Issue #68: Update gelbooru tags downloader, need cookie for login.
Remember to key in cookie for Gelbooru login (see the readme.txt).
Download link for danbooru downloader 20160117, source code in GitHub.
Donation Link on the side bar ==> 😀
Is it possible to save the tags to the downloaded file when using this program?
nope, it cannot modify the file to insert the tags to the metadata (different format, different handling).
Someone already request me to create external file (e.g. text file) to store the tags, refer to https://github.com/Nandaka/DanbooruDownloader/issues/80
nandaka i have a problem with
sankaku complex everytime if i want to download the tags on batch mode
it gives me an error that danbooru has stop working.
please tell me how to fix this problem…:(
I got an alert from Norton360 on a large amount of outgoing data leaking from Danbooru Downloader. It next asked my to run Norton Power Eraser, and a cloud scan showed the exe as bad, with the recommended action being to remove it.
Are we sure it’s safe?
Are you downloading the zip from GitHub: https://github.com/Nandaka/DanbooruDownloader/releases? Then it should be safe.
Anyway, the source code also in GitHub if you want to check/compile yourself. Use at your own risk.
The batch downloader snags pics from Danbooru but not from Sankaku Complex and Gelbooru. Why?
http://imgur.com/3oCWwUw
have you key in the login information? check the readme
Figured it out. I added the “rating:e” and “rating:q” variables, which I assume Sankaku and Gelbooru don’t use. Removing them did the trick. Either that or I needed to put a “+” where spaces would be on the actual booru.
Actually, there’s a new problem and this time I honestly can’t see what’s wrong. I did key in my login information. Want batch downloads of “loli+shota” from Danbooru, Gelbooru, and Sankaku. The first two outright don’t work while the pics from Sankaku manage to come in just fine as I type this. When testing batches of the tags individually (“loli” and “shota”), it works. For some reason trying to get pics with BOTH tags flat out won’t work. Why?!
in batch download, you need to add the + sign between each tag for sankaku, no need for other boorus.
Another problem solved. Thank you. Unfortunatlely, another came up for Sankaku. It refuses to snag pics past page 50, and I know the “loli+shota” tag harbors a lot more. About 3,000. And it only managed to get 990. Is it a limitation of the program itself?
Are you logged in? If not, sankaku will return an error. Check the readme for login using cookie.
seem like chan.sankaku login is broken
annymous and cookie is not working so i change it to userpass, it worked
Tried first time downloading tags from idol.sankaku, got this error: http://i.imgur.com/NxvchaY.png
should I click OK and click download again to continue?
increase the delay to 300s. Anyway, I won’t recommend you to update the tags.xml from sankaku as it will take thousands pages.
Hey, my question doesn’t exactly has to do something with your app, but rather with the workflow after having downloaded the images.
The standard file name pattern should be “%provider%%rating% – %id% – %tags%” what results in something like that: e – 216003 – breasts brown_eyes brown_hair long_hair mobile_suit_gundam mobile_suit_gundam_00 nipples pussy sumeragi_lee_noriega tadano_akira.png.
How do you extract these tags to actually use them? (e.g. in a picture organizing software; I use PaintShop Pro, that organizes your photo collection, too). I can think of at least one problem that will occur. If it’s a *.jpg you can just copy the tags from the file name into the meta data field, so this should be doable somehow. *.png images don’t support meta data though, so I guess you have to use an external software which can read these file name tags and save them in a database. So, my question is, how do you solve this problem, or don’t you use the tags at all? Are there any software tools that can help me with my problem?
It would be such a shame to not being able to use the tags to their full potential.
nope, I won’t modify the image file/metadata to insert the tags. It just for information. Sorry.
Hi there!
I was wondering if anyone could tell me how to log in to Sankaku Complex (HTTPS) so I could go up to 1000 pages instead of the regular 20. i know the log in information needs to be added to the DanbooruProviderList, but I’m awful with HTML.
Cheers!
LB
you need to login to the sankaku page using browser and get the cookie value.
See Q7: How to login to Gelbooru/get cookie value? in readme.txt
Every time I switch provider to gelbooru.com I get a weird error, so I effectively can’t use the app with it.
http://imgbox.com/MBkJ9MuS
Any help would be much appreciated. Here is a dump of the log from the window:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DanbooruDownloader3.Helper.ParseCookie(String cookiesStr, String url)
at DanbooruDownloader3.Entity.DanbooruProvider.GetQueryUrl(DanbooruSearchParam searchParam)
at DanbooruDownloader3.FormMain.GetQueryUrl()
at DanbooruDownloader3.FormMain.UpdateStatus()
at DanbooruDownloader3.FormMain.cbxProvider_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
—————————————-
DanbooruDownloader3
Assembly Version: 3.2016.1.17
Win32 Version: 3.2016.01.17
CodeBase: file:///C:/Users/lordvr/Desktop/DanbooruDownloader20160117/DanbooruDownloader3.exe
—————————————-
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
—————————————-
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
—————————————-
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
—————————————-
log4net
Assembly Version: 1.2.11.0
Win32 Version: 1.2.11.0
CodeBase: file:///C:/Users/lordvr/Desktop/DanbooruDownloader20160117/log4net.DLL
—————————————-
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
—————————————-
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
—————————————-
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
—————————————-
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34249 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
—————————————-
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
—————————————-
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
I think your DanbooruProviderList.xml got corrupted. Ensure the cookie value is stored in the UserName field.
i can’t download tag has 1000+ imgs on sankaku complex even when sign-in
what’s the error?
no error but once it downloaded 1000 imgs, it stopped, i dont know why…last time i used to download tag with 2000+ result, it worked but now…only 1000img downloaded even when i set limit is 22222 or 99999 (sankaku account logged too)
Can you check in the browser if it allow you to get more than 1000 result?
Sure, it allowed more than 1000+ result.
But in Main tab Danbooru Downloader, when i put Page : 60, seem like it can’t get 60+ page. I use Version 2016.01.17
so it’s new version bug or something ?…because i remember….software can easy download up to 1000+ images
which site? sankaku? I didn’t change the download logic, so most likely the site limit the download.
Any ideas for http://agn.ph/gallery/post ? Seems like my old modification of the sankakucomplex entry does not work anymore. all “tags” are now http://agn.ph/gallery/post/?search=“yoursearchhere”
No idea. The site doesn’t look like any danbooru/gelbooru/shimmie site that I know.
Maybe they changed the board engine?
Hmm… http://agn.ph/forums/thread/1974/ Booru, yes, but modified as it seems
http://s1078.photobucket.com/user/naruhina2016/media/Untitled_zpsn2zh9ab2.jpg.html
can someone please help me im trying to download pictures from gelbooru but it doesn’t work…:(
check the readme.txt: Q7: How to login to Gelbooru/get cookie value?
whats the long string?
you can get it from the cookie value from your browser after you login to gelbooru.
aha i see now i have a another problem while updating sankaku complex tags it gives me an error which gives me two options continue or quit
sankaku complex tag is bit problematic as they don’t provide api to download the list. The application need to parse the html individually and will take long time to completely iterate thousand of pages. ==> Not recommended.
can u please show me the example of login cookie?
see this post: https://nandaka.wordpress.com/2015/12/03/danbooru-downloader-20151203/
but now i have this problem
http://s1078.photobucket.com/user/naruhina2016/media/Untitled_zpss4difry2.png.html
thats weird, are you logged to Sankaku? If you didn’t provide the login cookie, it will limit the query result to 1000 images only (see readme to get the cookie value).
no it gives me that error when i try to go to generate menu where i can paste cookie on username
can u please tell me which cookie login i should be using for sankaku complex?
refer to http://i.imgur.com/lxKImSL.png and http://i.imgur.com/NuvaSv3.png (from F12 – Network Tab in Chrome)
Hi Nandaka,
Could you point me to instructions for adding in the login information and password for Sankaku Complex? I keep encountering the: (403) Forbidden error, please check your login information message.
Thanks!
It should be similar like gelbooru, you need to use cookies.
Check the readme.txt Q7: How to login to Gelbooru/get cookie value?
How long should I set the batch delay for sankaku complex and does it apply to the Download List and Download Tags section?
You can set it 60000 (1 minutes) or 300000 (5 minutes). It should apply to download list and tags.
Hi
i have a problem if donwload the downloader frome here but ther is no EXE file to open
I search in every folder but nothing
Do i need somtink or i am just to stupid to find it ? (sorry for my dab english)
get it from https://github.com/Nandaka/DanbooruDownloader/releases/download/v3.20160117/DanbooruDownloader20160117.7z
and extract the archive. it should have the exe file inside.
Hello! I’ve been having trouble downloading from e621.net lately. Before your most recent update, it worked fine. But even when I tried getting pics from e621 with the older version, it didn’t work! Here’s an image from the Log of what’s been happening:
http://i.imgur.com/OqUxAPv.png
Looks like they changed something from the server. Please create an issue in GitHub for this.
Uh, please don’t hit me but…I don’t know how to do that. ):
here is the url: https://github.com/Nandaka/DanbooruDownloader/issues
Thx <3 Love your program btw
It changed my life, made downloading hentai fun again!
Thank you for your great app.
Could you consider to add “wait (and retry later)” option to avoid “The remote server returned an error: (429) Too many requests”.
For example, I tried to download hundreds pics from sankakucomplex, the log shows “The remote server returned an error: (429) Too many requests – please slow down….”.
set the batch delay in Settings Tab -> Download Section.
Thanks for your advice, I’ll try.
The readme is fucking useless, I had to read the source code to figure out how to use the Cookie login for Gelbooru. First follow the steps from the readme, and put your cookie data between _then_ (something that is clearly missing from the readme) change the “LoginType” to “Cookie” and do not change “UseAuth” (or add it) in any way.
ah, the image is not added. Should have refer to my last post. Anyway, updating the readme.txt
Updated the readme, https://github.com/Nandaka/DanbooruDownloader/blob/master/readme.txt#L140
Happy?
I am, I was just being an asshole — sorry.
Thanks for your great tool and all the effort that went into it.
Unable to download tags.xml for gelbooru, I get an empty XML and a new text file with “Our API is being abused at the moment and is disabled to anonymous users.”, any way to have it download the tags while logged in?
You need to login to gelbooru and supply the cookie from your browser to the provider list. See the “Q7: How to get cookie value?” in readme.txt.
Getting same issue, can’t open the options for gelbooru to add my cookie value, it brings up an error message. Clicking continue lets me get to the options and add the cookie, but that’s it, batch option doesn’t work. Worked fine in the previous version I used (couple of months ago). Error from the log file:
2016-01-19 05:17:55,632 INFO – Logging Enabled
2016-01-19 05:17:56,858 INFO – Starting up Danbooru Downloader 3.2016.01.17
2016-01-19 05:17:56,863 DEBUG – Loading provider list.
2016-01-19 05:17:56,897 DEBUG – Provider list loaded.
2016-01-19 05:17:56,915 DEBUG – Danbooru Downloader 3.2016.01.17 loaded.
2016-01-19 05:18:07,552 ERROR – Input string was not in a correct format.
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at DanbooruDownloader3.FormProvider.GetValues(Int32 index)
2016-01-19 05:18:07,562 ERROR – Input string was not in a correct format.
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at DanbooruDownloader3.FormProvider.GetValues(Int32 index)
2016-01-19 05:18:07,568 ERROR – Invalid cast from ‘System.String’ to ‘DanbooruDownloader3.Entity.DanbooruTagCollection’.
System.InvalidCastException: Invalid cast from ‘System.String’ to ‘DanbooruDownloader3.Entity.DanbooruTagCollection’.
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at DanbooruDownloader3.FormProvider.GetValues(Int32 index)
2016-01-19 05:18:07,583 ERROR – Invalid cast from ‘System.String’ to ‘DanbooruDownloader3.Entity.DanbooruTagCollection’.
System.InvalidCastException: Invalid cast from ‘System.String’ to ‘DanbooruDownloader3.Entity.DanbooruTagCollection’.
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at DanbooruDownloader3.FormProvider.GetValues(Int32 index)
I think your provider xml got corrupted, can you restore with the original here: https://github.com/Nandaka/DanbooruDownloader/blob/master/DanbooruDownloader3/DanbooruProviderList.xml
I have same problem. Getting error when trying to change gelbooru options, and even when trying to update tags after changed login type.
Also i want to ask, do you save settings in register? Because when i delete DD, and then unpack DD in same path i have saved setting, but not default settings. Only path changing help. WTF? How it’s work? 😀 If i want to reset settings, i need to change path to new one newer used before.
That’s the log:
http://pastebin.com/vTPmg7V9
I’am using win 8.1 x64 rus.
If need, i can try to translate to eng.
> from log file: “No tags.xml, need to download!”
check the readme for how to download tags.xml.
Settings stored using user settings, so it should be in C:Users\AppDataLocalNandaka.
Just delete the folder to reset.
Not tags, but settings reset fixed my problem.
Maybe you can add “Reset settings” button?
Also can you modify readmy a bit? Need to see final result more clear at image, just fill with fake number like 11111 or smting?
Thanks for the help and program 🙂
What do you mean by Final Result? Is it related to the limit?
I’am about screenshot. This one http://i.imgur.com/rCCjnPs.png
Can you remove black boxes? I’am asking about this because from browser we copy separated info. Like only user_id, only numbers of that id, not in hm “final form” “user_id=; pass_hash=”. When in readme you says that we get cookie in “final form”, so i was confused how i must enter cookie in DD, with spaces betwen them or like what?
Hope you understand what i’am trying to say, 2hard for me to describe my thoughts in understandable form because of bad English.
If you not understand, then just remove that black boxes from screenshot, that will help idiots like me. 🙂
just put merge all the cookies together into single line. At least for gelbooru, you only need to use this:
Already did, I’am asking for new users 🙂
http://i.imgur.com/IfBpPl9.png
Log file: http://www.mediafire.com/view/tewa5bchr80d967/log.ini
That’s weird, cos it is working in my pc. see http://i.imgur.com/X4sqQeY.jpg
Can you give me the search query/actual log file (check the application folder, should have something like log-.txt)
Thanks for your replied :), here is the most latest failed log.
http://www.mediafire.com/view/cyr67ybj8y1y03i/log-2016-01-19.txt
Looks like the tags.xml for yande.re got issue. For some reason, it returns the html page not the xml. Can you open https://yande.re/tag/index.xml?limit=0 ? It should be like: http://i.imgur.com/jh2QDiB.png
If still fail, use http://www.mediafire.com/download/ju3t3g1o3ghzh7a/tags-yande.re+%28oreno.imouto.org%29.xml.7z to overwrite your tags.xml
Oh, thanks for that very quick replied 🙂
I’ve solved that problems thanks to you.
but i’ve a question: Did DbrD auto get page forward or i’ve manualy drag the bar until the end of the page for it to load the next page? (Annoying anyway)
only when u drag the scrollbar.
Well time get a little annoying pal, can i ask what the “offset” is and can i some how do anything about it?
Like the Red backgroud on the lines, first time i’ve seen it…
http://i.imgur.com/Oxl28fx.png
you can ignore the offset, it is just offset value for each xml query.
compare https://yande.re/post/index.xml?page=5&limit=30 and https://yande.re/post/index.xml?page=2&limit=30
Cus if the tag got like 10000 files, but the offset was 9000.
It’s only download until reach 9000 files, throwaway 1000 more file not downloaded.
And the one that got Red color couldn’t finished the remaining file.
http://i.imgur.com/zA0KcuB.png
I’m not sure, because the offset value come from the server and it does nothing (just information).
Which provider you are downloading from? Remember that some provider put a limit on how many images you can download (e.g. even if the tag count show 100k+, sankaku limit to the first 1000 page (around 2000images) if you are registered. I think danbooru also have the same limit (not sure for the paid user).
No, i don’t think so mate, cus i’ve downloaded them before, at the same amount.
But not this time, and the Red Background seem weird to me,
Yande.re and Konachan.
then, can you upload the log file to pastebin. It should be in the application folder with name like log-2016-04-11.txt. If you are not sure which log file, just delete all and recreate the error and upload that file.