NoahCardoza / CaptchaHarvester

Solve captchas yourself without having to pay for services like 2captcha for use in automated projects.
https://pypi.org/project/captcha-harvester/
MIT License
655 stars 63 forks source link

ReCaptcha not rendering for https://www.google.com/recaptcha/api2/demo #108

Closed asyed03 closed 1 year ago

asyed03 commented 1 year ago

Steps to reproduce:

visit url "https://www.google.com/recaptcha/api2/demo"

domain = www.google.com
sitekey = 6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-
self.harvester.intercept_recaptcha_v2(domain=domain, sitekey=sitekey)

Running the method:

self.harvester = Harvester()
server_thread = Thread(target=self.harvester.serve, daemon=True)
server_thread.start()

# launch a browser instance where we can solve the captchas
print("Launching browser...")
self.harvester.launch_browser()

The resulting error is that the harvester browser launches and everything renders except for the recaptcha. When checking network tab there is an ssl error.

image

NoahCardoza commented 1 year ago

This is a known issue with HTST (HTTP Strict Transport Security). I've found some workarounds but don't have plans to release the source code for Harvester V3.