ERROR_BAD_PARAMETERS mit 2Captcha, während Sie versuchen, Funcaptcha auf LinkedIn zu lösenPython

Python-Programme
Anonymous
 ERROR_BAD_PARAMETERS mit 2Captcha, während Sie versuchen, Funcaptcha auf LinkedIn zu lösen

Post by Anonymous »

Ich versuche, die Arkose Funcaptcha auf LinkedIn mit 2Captcha zu lösen. Ich benutze Selen und hier ist mein Python-Code.

Code: Select all

try:
captcha = self.driver.find_element(By.XPATH, "//input[@name='captchaSiteKey']")
iframe = self.driver.find_element(By.XPATH, '//iframe')

site_key = captcha.get_attribute('value')
url = iframe.get_attribute('src')

print(f"Solving captcha for site key: {site_key}")
print(f"URL: {url}")

result = self.solver.funcaptcha(site_key, url)
if result.get('code') == 0:
token = result.get('token')
self.driver.execute_script(
f"document.querySelector('input[name=\"fc-token\"]').value = '{token}';"
)
except Exception as e:
print(f"Error solving captcha: {str(e)}")
finally:
self.driver.switch_to.default_content()
Ich erhalte erfolgreich eine Site -Schlüssel, und die URL ist https://www.linkedin.com/checkpoint/cha ... hainternal. Ich erhalte jedoch ERROR_BAD_PARAMETERS. Warum passiert das?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post