Nandaka / DanbooruDownloader

*booru image downloader
http://nandaka.devnull.zone/
391 stars 38 forks source link

Load pages from 51 on Sankaku #162

Open Ma0ux opened 6 years ago

Ma0ux commented 6 years ago

I've just see that you provided a fix fro issue 111, but it hasn't worked, since I can't load the page 51. Maybe I am doing something wrong. Can you tell me how can I use the fix? How can I update? Please?

Nandaka commented 6 years ago

Can you open the website from browser? Ensure you supply the login/cookie value for sankaku, or they limit the page for searching.

From readme:

Q7: How to login to Gelbooru/Sankaku/get cookie value?
A7: Follow this step:
    1. Press F12 on your Chrome browser and select Network tab.
    2. Go to the booru site and login.
    3. Click one of the entry and copy the Cookie value from the Request Header. 
       For gelbooru, it should like this: user_id=<number>; pass_hash=<long string>
       For sankaku, login=<username>; pass_hash=<long string>;
    4. Paste the Cookie value to the Username field.
    5. Set Login Type to Cookie. Refer to http://i.imgur.com/rCCjnPs.png

image

Ma0ux commented 6 years ago

Thank you for the answer.

I did that, the login. this2 I got this when I tried to get into page 51, with the "tags=vocaloid&page=51&next=" on the url bar. this1 But when I use the "next" button on the page, I got this: this4 And the url there is different. This is what happens when I try to get into page 51 with danbooru: this5 And the login is set, as you can see in the first image. What am I doing wrong?

Thank you again.

Nandaka commented 6 years ago

Try to change QueryStringHtml to /?%_query%?

image

Ma0ux commented 6 years ago

Nope. I still get error 404. could it be a matter of my Sankaku account?

Nandaka commented 6 years ago

Maybe? My level is Contributor. image

Nandaka commented 6 years ago

Try this way? If it is working, then maybe I can set a workaround. image

Ma0ux commented 6 years ago

Awesome. It kind of worked, but it's showing the page 52. this6 What does it mean? It can be worked somehow? That would be great.

Edit: Using the number on the URL, I can see the page 51. I am so happy. this7 You are awesome.

Nandaka commented 6 years ago

Yes, but with some limitation, as I need to get the post id from the previous page to make it works. so If you try to jump to page 100, I need to get the last image in page 99, which in turn I need to fetch the previous image from page 98 and so on until it hit the page 50 (as this is the limit for normal user). This is not effective, unless you are ok to key in the value of ?next=<first_image_in_target_page> every time you query sankaku with page > 50.

Btw, anon can only browse to page 25 now: image

Ma0ux commented 6 years ago

Yeah. Maybe it's a matter of the level of your account. How did you get that level? And the other guys have the same level? To try and see what can I do.

Nandaka commented 6 years ago

I think I get it by updating the tagging information in the site? E.g. update the artist url in the tags details.

GiRaFa-SM commented 6 years ago

Ye, but by doing this it'll only load the page you're and wont update past to this, tested this in the last released ver.

GiRaFa-SM commented 6 years ago

found an workaround till dev fix this.

Load page 49 > scroll till page 51 loads > after that type page number you stopped (101 for example), it'll load starting from the page selected.