Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

364
Views
Captcha reaparece usando token 2captcha en Selenium

Así que estoy tratando de saltarme el captcha en esta página https://divulgacione14.registraduria.gov.co/ usando 2captcha, Selenium y python. Aparece un captcha de imagen después de haber pulsado un par de veces el botón "Consulta".

Todo funciona bien en el código. Sin embargo, cuando obtengo la solución de token de 2captcha, la uso como entrada para g-recaptcha-response , aparece un nuevo recaptcha que me pide que haga clic en algunas imágenes.

Aquí está el código que estoy usando (supongamos que el result['code'] contiene el token proporcionado por 2captcha).

 from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By ser = Service("chromedriver.exe") op = webdriver.ChromeOptions() driver = webdriver.Chrome(service = ser, options = op) driver.get("https://divulgacione14.registraduria.gov.co/") ## Find Captcha area and make it visible captcha_res = driver.find_element(By.ID, 'g-recaptcha-response') captcha_vis = "arguments[0].setAttribute('style','type: text; visibility:visible;');" driver.execute_script(captcha_vis, captcha_res) ## Pass as input token for recaptcha driver.execute_script('document.getElementById("g-recaptcha-response").innerHTML = arguments[0]', result['code']) ## Submit form captcha_res.submit()

Después de enviar el formulario, vuelve a aparecer un captcha que me pide que seleccione entre un conjunto de imágenes. ¿Alguien sabe por qué no funciona el token?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!