Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect #435

Open
ShubhamMishra2202 opened this issue Sep 29, 2024 · 4 comments
Open

Can't connect #435

ShubhamMishra2202 opened this issue Sep 29, 2024 · 4 comments

Comments

@ShubhamMishra2202
Copy link

File s:\linkedin_scrapper\6\venv\lib\site-packages\linkedin_api\client.py:163, in Client._do_authentication_request(self, username, password)
160 data = res.json()
162 if data and data["login_result"] != "PASS":
--> 163 raise ChallengeException(data["login_result"])
165 if res.status_code == 401:
166 raise UnauthorizedException()

ChallengeException: CHALLENGE

@ShubhamMishra2202
Copy link
Author

Seems it can't bypass the CAPTCHAS

@Nijneleven
Copy link

You would either create that yourself or you need to use rotating proxies. Brightdata is a good one, I rarely hit any captcha.

@wladimiravila
Copy link

hello @Nijneleven , I recently create an account in brightdata and now I got this error

raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.linkedin.com', port=443): Max retries exceeded with url: /uas/authenticate (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

here my proxies

proxies = {
'http': 'http://heremyusername1:mypass@brd.superproxy.io:22225',
'https': 'https://heremyusername1:mypass@brd.superproxy.io:22225'
}

raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.linkedin.com', port=443): Max retries exceeded with url: /uas/authenticate (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

the curious point is that I use "requests" directly setting the proxies and works!

@Nijneleven
Copy link

Try this:

proxies = {
'https': 'http://heremyusername1:mypass@brd.superproxy.io:22225/'
'http': 'http://heremyusername1:mypass@brd.superproxy.io:22225/',
}

I always use http for the https setup. Most proxies only allow http

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants