Open ShubhamMishra2202 opened 1 month ago
Seems it can't bypass the CAPTCHAS
You would either create that yourself or you need to use rotating proxies. Brightdata is a good one, I rarely hit any captcha.
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!
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
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