EchterAlsFake / PHUB

A lightweight API for Pornhub
https://phub.rtfd.io
GNU General Public License v3.0
64 stars 22 forks source link

Failed to login #57

Closed amiyoghoshstar closed 4 months ago

amiyoghoshstar commented 4 months ago

Hi I am trying to login using this code snippet below. client = phub.Client("username","password")

I am getting this error phub.errors.LoginFailed: Invalid entry. Use a valid email address to log in. I am using email as username.

I have also inspected the official pornhub api request to login. Please check below image

As you can see the field name is email not username. So it might be a cause of this issue?

Thank you!

EchterAlsFake commented 4 months ago

Hi,

Have you used the newest commits from this repository? Egsagon already fixed the login, but we haven't created a new Pypi release yet, because there are some other issues which need to be fixed.

Please install PHUB from git by executing: ˋpip install git+https://GitHub.com/EchterAlsFake/PHUBˋ

And let me know if it worked. Thanks :)

amiyoghoshstar commented 4 months ago

Thank you so much for you reply!

I am having another problem. when i try to install the package for python 3.10 using this suggested way pip install --upgrade git+https://github.com/EchterAlsFake/PHUB.git@py-3.10

It installs the package as UNKNOWN 0.0.0.0

Do you know how to resolve this issue? @EchterAlsFake

EchterAlsFake commented 4 months ago

Hi, I have synced the py-3.10 branch with the new commits from master. Maybe you just try it again.

(Never seen such an error lol)

amiyoghoshstar commented 4 months ago

image Still no success :(

Egsagon commented 4 months ago

Hi, What about the compat branch? It should be compatible with py3.10. The error you got is really weird, maybe also try to reset you env and/or uninstall and install back the package. Hope that helps

EchterAlsFake commented 4 months ago

Your pip version is out of date (like really out of date). Maybe do pip install --upgrade pip