tomquirk / linkedin-api

👨‍💼 LinkedIn API for Python
https://pypi.org/project/linkedin-api
MIT License
2.11k stars 452 forks source link

Encountered ChallengeException: CHALLENGE while trying to login with app client credentials #440

Open graghukalyan opened 1 month ago

graghukalyan commented 1 month ago

Hello folks,

I created a app and was trying to leverage this python library to make an API call & fetch profile information. I've validated the __api = Linkedin(username, password)_ using my personal credentials & it works as expected and as provided by the documentation.

However, I've encountered _linkedinapi.client.ChallengeException: CHALLENGE while trying to use the app client credentials __api = Linkedin(_clientid, _clientsecret)_ .Looking for some alternatives/ workarounds for tackling this issue from the community.

linkedin_api/linkedin.py, line 82, in __init__ self.client.authenticate(username, password) linkedin_api/client.py, line 101, in authenticate self._do_authentication_request(username, password) linkedin_api/client.py, line 163, in _do_authentication_request raise ChallengeException(data["login_result"]) linkedin_api.client.ChallengeException: CHALLENGE

TIA

elchead commented 1 month ago

same, the README mentions that there is not much you can do about it

vivi7 commented 1 month ago

SO, actually, this apis are useless, is thwere a way to search job and get description with no login?

graghukalyan commented 1 month ago

@elchead On top of my head, could think of these two scrappy alternatives:

@tomquirk Any feedback/thoughts ?