bitbybyte / fantiadl

Download posts and media from Fantia
MIT License
300 stars 51 forks source link

Login process now requires reCAPTCHA #28

Closed tenyuhuang closed 4 years ago

tenyuhuang commented 4 years ago

As the title says, fantiadl will return an Error: Invalid session after a password change; and it's not a wrong password either - on wrong password, it will threw "Error: Failed to login. Please verify your username and password", but with the new one, it will just return "Invalid session" instead.

Tried again on a different network and OS, didn't work.

Could you look into the issue? Thanks in advance!

bitbybyte commented 4 years ago

Are you using the binary? This should have been addressed in #26. I uploaded a new release so please let me know if the issue persists.

EivV commented 4 years ago

I am using the source version (have also just tried the new 1.4.3 binary) and the session is still invalid. The response code is always 401.

bitbybyte commented 4 years ago

I guess the login process has changed as https://id.fantia.jp/auth/login now fails and login is done at https://fantia.jp/sessions/signin. That requires reCAPTCHA so the only option now may be having the user provide their session cookie.

EivV commented 4 years ago

I wouldn't mind the change. If there is a place in-source where I could set the hard-coded value, that would be enough for me. If there was a CLI option, then even better.

bitbybyte commented 4 years ago

Ideally I think it should have -c/--cookie to provide it directly and also a way to read from a cookies.txt, so I'll try to include both.

tenyuhuang commented 4 years ago

Yeah the binary has the same issue, I'll try again with _session_id when you implement it.

bitbybyte commented 4 years ago

@EivV Please test from this branch: https://github.com/bitbybyte/fantiadl/tree/use-session-cookie

EivV commented 4 years ago

Yes, it is working now.