pyppeteer icon indicating copy to clipboard operation
pyppeteer copied to clipboard

How to wait for a Recaptcha to load in Pyppeteer?

Open namename-123 opened this issue 5 years ago • 1 comments

I want to scrape a website and I'm having difficulties with the Recaptcha. I've already figured out a way to solve it but before that method starts I have to make sure Recaptcha is fully loaded, which is what I'm stuck at. I've tried page.waitForSelector('#captchaFormPart > td:nth-child(2) > script:nth-child(1)', options={'visible': True}) I got that selector from the Recaptcha checkbox, and it didn't work.

namename-123 avatar Dec 11 '19 15:12 namename-123

I want to scrape a website and I'm having difficulties with the Recaptcha. I've already figured out a way to solve it but before that method starts I have to make sure Recaptcha is fully loaded, which is what I'm stuck at. I've tried page.waitForSelector('#captchaFormPart > td:nth-child(2) > script:nth-child(1)', options={'visible': True}) I got that selector from the Recaptcha checkbox, and it didn't work.

I recommend using this repository: https://github.com/MacKey-255/GoodByeCatpcha

MacKey-255 avatar Dec 30 '19 03:12 MacKey-255