Nandaka / PixivUtil2

Download images from Pixiv and more!
http://nandaka.devnull.zone/
BSD 2-Clause "Simplified" License
2.38k stars 254 forks source link

Still cannot log in #1372

Closed anna-s-h closed 1 week ago

anna-s-h commented 1 month ago

I was hoping Pixiv would undo whatever change was causing it so I was just going to wait it out, but I am still having the issue from #1368 or #1352. I updated, changed my language and region to japanese, and recopied the cookie (I later realized it didn't change anyway).

beterhans commented 1 month ago

same here

4n0nh4x0r commented 2 weeks ago

Same here.
When i m using the compiled version, it works fine (except for the f1 and f2, but the source code version just keeps giving me a 403 error, no matter what i try.

4n0nh4x0r commented 2 weeks ago

well okay, nvm, seems like it just started working again.
What i just tried was once again, changing the language on pixiv to japanese, and also in PixivBrowserFactory.py on lines 351 from https://www.pixiv.net/en to https://www.pixiv.net and on 372 from https://www.pixiv.net/ to https://www.pixiv.net

icedstick commented 2 weeks ago

@4n0nh4x0r Would you be willing to share your compiled files for those struggling to understand how to use Python? There's unfortunately no guide on how to do this.

4n0nh4x0r commented 2 weeks ago

@icedstick Well for one, idk, would feel kinda sketchy to upload the exe file lol secondly, i actually didnt compile it into an exe as i honestly have no idea on how to do that (i once knew how to do that, but i havent programmed in python in quite a while, and as such, didnt do that ever since)

Fixing Pixivutil

The fix really is just

and that's it then it should work, at least it did for me

Executing the program

to run the program, just open the folder in your cmd/terminal
in windows you can do very easily

Note, you need to have python installed to begin with, for that just go to their website https://www.python.org/downloads/ (side note, it is always best to open the links yourself on the actual website rather than clicking on links provided by others as that limits the chance that someone could scam you)
And from here on, have fun, it should work now, and most importantly, f1 and f2 should work aswell now

icedstick commented 1 week ago

@4n0nh4x0r Thanks for replying to me 🙂. I tried doing the steps above and received the following error: image

This was after manually downloading module "demjson3.py" to rectify an error received that this file was missing. I am unable to proceed. I couldn't successfully find where to download the mechanize module it is looking for. 😞

blue-popsicle commented 1 week ago

@icedstick

With Python installed, open a Powershell window.

Use the following command to navigate to your PixivUtil2-master directory: cd Z:\PixivUtil2-master

Use the following command to install all of the requirements from requirements.txt (which includes the "mechanize" module you're missing): pip install -r requirements.txt

icedstick commented 1 week ago

@blue-popsicle Thank you, this is the furthest I've gotten so far! I now receive the following errors now that I can run "python PixivUtil2.py": image

I have triple-checked that everything login details and cookie-wise is entered correctly. Any ideas on how to rectify these errors?

4n0nh4x0r commented 1 week ago

@icedstick that is the error i got while pixiv was set to english for me.
it worked after setting it to japanese.
yea, no clue why, but the language of the site is important, probably some api change that is only applied on a certain language...
if that doesnt work, make sure you also have the cloudflare token set in your config.

icedstick commented 1 week ago

@blue-popsicle & @4n0nh4x0r THANK YOU!!! I replaced the cookie values in config.ini after placing pixiv and fanbox websites into japanese and used firefox to retrieve the cf_clearance token that doesn't appear in chrome. It is working for me now! Thank your for laying it out for a newbie like me to follow.

anna-s-h commented 1 week ago

I don't use fanbox, and already made those changes before the update, plus confirmed that they were there after the update. I have also set my language to japanese the only thing that's missing is the cf_clearance but I was under the impression that was just for fanbox I am running this with linux by python, not exe (I guess I could try wine or something...)

anna-s-h commented 1 week ago

I found out that my problem was that I had to log out manually and log back in in japanese to refresh the cookie. I can now log in.