Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Site Support Request] inkbunny.net #283

Closed
ghost opened this issue May 28, 2019 · 10 comments
Closed

[Site Support Request] inkbunny.net #283

ghost opened this issue May 28, 2019 · 10 comments

Comments

@ghost
Copy link

ghost commented May 28, 2019

I hope Inkbunny can be supported

Link to the API

An account you can test to

@catlover1019
Copy link

Now that FA's been done, I really hope IB will be soon

@espressoelf
Copy link

Any news on this? :)

@mikf
Copy link
Owner

mikf commented Jun 27, 2020

No, sorry.
I remember looking at the API docs linked above and being kinda put off after staring at it for a few minutes. Haven't made any progress since ...

@espressoelf
Copy link

Understandable, there are better documentations and also better APIs. I've been reading around the docs, doesn't seem that complicated, but it's a bit unconventional. To download someone's favorites or submissions, you have to do a search. Usually there's an endpoint for that, too. While you can search submissions providing a username, you need the userid to get the favorites. But getting your own favorites is easy since your userid is returned at login.

Using the search (user's submission, favorites or pool's images) basically means: telling the site you want 100 results and a resultid, repeating the request providing that rid + incrementing a page var. I haven't compared the details but the submission details from the search are limited, so you may want to limit it to returning just the submissions ids.

Having submission ids only, like when trying to download a single link, you send a comma seperated list with a maximum of 100 ids to the submission info endpoint ... Only thing to find out is how to get another user's userid the easiest.

More or less like that. Hope that sparks your motivation a bit :)

@mikf
Copy link
Owner

mikf commented Jul 22, 2020

There's probably still a lot to be done, but here is initial support for inkbunny: 87202b8
To login, you need to check the "Enable API Access" box in your account settings.
Let me know about any other features you want to see, and of course about any bugs you encounter.

@biznizz
Copy link

biznizz commented Jul 23, 2020

So the extractor structure in the .conf would look like

"inkbunny":
		{
		    "username": "USER",
		    "password": "PASS",
                    "filename": "{filename}.{extension}"
		},

after enabling the API box in the site user settings? Or is there anything else you need?

@kattjevfel
Copy link
Contributor

@biznizz yup, works for me!

katt@main ~ » gallery-dl https://inkbunny.net/s/2187067
[inkbunny][info] Logging in as Blarghbarf
/mnt/jupiter/Temp/gallery-dl/inkbunny/kaittycat/2187067 3174867 Nevos Sees Everything.png

mikf added a commit that referenced this issue Jul 24, 2020
mikf added a commit that referenced this issue Jul 24, 2020
mikf added a commit that referenced this issue Jul 24, 2020
mikf added a commit that referenced this issue Jul 24, 2020
@biznizz
Copy link

biznizz commented Jul 24, 2020

Have noticed that, when running the user post extractor, the program doesn't run from the latest picture posted, but from seemingly random older picture, then sort of bounce around. It's entirely possible, if your skip value has a low exit: number, that it could search around already downloaded pictures and close before finding any new pictures in the gallery you're trying to download.

The individual post extractor works fine as far as I'm aware.

EDIT: This was tested with the initial dev build before the changes made an hour prior to this posting, just for clarity.

EDIT 2: Have tried installing dev build after seeing the commts, then tried running it again. Gallery ripping does not start from the newest image from the top of page 1 (or just newest image if gallery is only one page) like Deviantart or FA, but still starts somewhere else.

Ex. if the submission number for the newest image is XXX9380, then ripping the user will start at XXX4328, earlier on the page. It wont start with the oldest image at WWW8922 on the last page either. Very odd behavior.

Again, isn't THAT big of an issue, especially if you're ripping the gallery for the first time, but if you use a value of "skip": "exit:50" (usually enough to get anything new with a previously ripped gallery, but long enough to not end prematurely if something does come up later on), then it's entirely possible for the program to end without getting anything new, and making temporary changes to the config is a bit of pain. If it's because of how the website is set up, it can't be helped I suppose, but just wanted to see if this is just something I'm experiencing or not or if it's an issue with anyone else.

mikf added a commit that referenced this issue Jul 27, 2020
Getting detailed submission info via /api_submissions.php reordered the
input submissions and sorted them by ID. InkbunnyAPI.detail() now sorts
them back and ensures they are returned in their original order.

This commit also removes the 'metadata' option and always requests
submission descriptions.
mikf added a commit that referenced this issue Jul 27, 2020
Just put everything at the top level,
instead of having a separate 'post' object.
@mikf
Copy link
Owner

mikf commented Jul 27, 2020

@biznizz should be fixed with b921fee

@J20X9
Copy link

J20X9 commented Jul 30, 2020

Is the num keyword supported for multi-image posts? If not, would it be possible to add it? If I had my filename set up like {submission_id}_{title}_{num}.{extension} then this post would download two files named 2217895_Confession_00.png and 2217895_Confession_01.png.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants