question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Puppeteer triggers captcha always and I can never complete it..

See original GitHub issue
  puppeteer.launch({executablePath: "C:/Users/DDM/AppData/Local/Google/Chrome/Application/chrome.exe", headless: false, slowMo:10, ignoreDefaultArgs: ['--enable-automation'], args: ["--proxy-server=http://" + proxy]}).then(async browser => {
  const page = await browser.newPage()

These are my launch options, any site I try with captcha, it does not work. Tried Chromium and Chrome.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

6reactions
geekbleekcommented, May 13, 2020

Take a look at my repo: puppeteer-theater. Look specifically inside the classes/puppeteer-bot-2a.js file. Just chill it is a lot of code but I want to point out the functions you are looking for.

Search for disguisePage and feel free to copy it I guess, though you are going to run into problems if you can’t understand at least the gist of what’s going on here to disguise the bot. This function takes a page, browserContext, and some basic properties so it can be easily extracted from this class file.

Next, for solving captchas: Search for resolveCaptcha & resolveAntiCaptchaTask. Pull these out and implement them as you need. If you haven’t realized yet, to get around this you will also need a captcha solving provider. I recommend AntiCaptcha. Find the docs here: https://anti-captcha.com/apidoc/image.

You should want something like const { gRecaptchaResponse } = await resolveCaptchaTask({ type: 'NoCaptchaTaskProxyless', websiteURL: page.url(), websiteKey, });

gRecaptchaResponse here is the solution you need to set to document.querySelector('#g-recaptcha-response').value & document.querySelector('#g-recaptcha-response').innerText.

@nicoandmee is puppeteer-theater repo still available, or a recommended alternative? 😃 Thanks!!!

0reactions
stale[bot]commented, Jul 25, 2022

We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

puppeteer - identify when reCaptcha challenge becomes ...
Using puppeteer, my goal is to wait for and identify when the challenge (having to pick specific images from a grid) becomes visible...
Read more >
Bypassing CAPTCHAs with Headless Chrome - Jarrod Overson
If your CAPTCHA is not ready then you'll receive a “CAPTCHA_NOT_READY” response which indicates you need to try again in a second or...
Read more >
puppeteer-extra-plugin-recaptcha - npm
A puppeteer-extra plugin to solve reCAPTCHAs and hCaptchas automatically.. Latest version: 3.6.6, last published: 6 months ago.
Read more >
How to bypass reCAPTCHA with Puppeteer and Headless ...
Your browser can ' t play this video. ... integrate 2Captcha captcha solver with puppeteer and headless chrome to bypass Google's reCAPTCHA.
Read more >
How to Bypass CAPTCHAs When Web Scraping - Proxyway
This article will teach you about CAPTCHAs, their triggers, challenge types, ... But it doesn't mean there's nothing you can do about them....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found