puppeteer-extra icon indicating copy to clipboard operation
puppeteer-extra copied to clipboard

Using puppeteer-extra-plugin-recaptcha, unable to submit

Open shubham0804 opened this issue 3 years ago • 11 comments

Describe the bug

I'm trying to solve the captcha on the Youtube about page of any channel. For ex: https://www.youtube.com/c/FKnight/about.

  • After clicking the "View Email Address" button, the re-captcha shows up.
  • The captcha turns from purple to green, but the submit button is not being clicked. Manually clicking the submit button after the captcha is solved has no effect either

Sometimes, clicking on the captcha manually after it turns green results in the tick mark being shown but again clicking the submit button has no effect.

Code Snippet

    await page.waitForSelector(".ytd-channel-about-metadata-renderer #text");
    await page.click(".ytd-channel-about-metadata-renderer #text");

    await page.solveRecaptchas();

    await Promise.all([page.waitForNavigation(), await page.click("submit-btn")]);
                                           or
    await Promise.all([
            page.waitForNavigation(),
            await page.click(
                ".style-scope > .style-scope > #submit-btn > .yt-uix-button-content > .style-scope"
            ),
        ]);

Versions puppeteer: ^9.1.1 => 9.1.1 puppeteer-extra: ^3.1.18 => 3.1.18 puppeteer-extra-plugin-recaptcha: ^3.4.0 => 3.4.0 puppeteer-extra-plugin-stealth: ^2.4.5 => 2.4.5

Any help is appreciated!

shubham0804 avatar May 28 '21 20:05 shubham0804

I encountered the same problem, Analyze the network request for the submit button image

long369486562 avatar Aug 27 '21 10:08 long369486562

Does the debug log contain something interesting here?

DEBUG=puppeteer-extra-plugin:recaptcha node myscript.js

berstend avatar Sep 13 '21 05:09 berstend

调试日志是否包含一些有趣的内容?

DEBUG=puppeteer-extra-plugin:recaptcha node myscript.js

My technique is relatively mediocre, I don’t understand what you mean

long369486562 avatar Sep 13 '21 06:09 long369486562

调试日志是否包含一些有趣的内容?

DEBUG=puppeteer-extra-plugin:recaptcha node myscript.js

image

long369486562 avatar Sep 13 '21 06:09 long369486562

Does the debug log contain something interesting here?

DEBUG=puppeteer-extra-plugin:recaptcha node myscript.js

Overall, I did a lot of tests but couldn’t solve it

long369486562 avatar Sep 13 '21 06:09 long369486562

https://discord.com/channels/737009125862408274/737009125862408277/970702523960811581

was further discussed in stealth discord here, still unsolved but a few investigations were run

krthush avatar May 02 '22 16:05 krthush

https://discord.com/channels/737009125862408274/737009125862408277/970702523960811581

was further discussed in stealth discord here, still unsolved but a few investigations were run

Thanks for the update! I went through the conversation on Discord. Please do update this thread if you get a response from 2captcha

shubham0804 avatar May 03 '22 03:05 shubham0804

holy shit that was one hella journey but fuk me is it difficult... im not even sure with all these hoops ill be able to automate this

SO, longstory short, basically to bypass the youtube business email check you HAVE to use a proxy, so you need a static IP (as well as user agent), then you can pass these details alongside the sitekey/url to a service such as https://anti-captcha.com/apidoc/task-types/RecaptchaV2Task, then and then only will the solution token work

my issues... well as soon as you start to use proxies google starts to go all anal on you, for this specific task logging into a google account is required, but since your using a proxy it starts to require you to do SMS verification... how do I even ever automate this pain? there seem to SMS automation services... but so much cba xD

am i missing a hack?

krthush avatar May 04 '22 21:05 krthush

调试日志是否包含一些有趣的内容?

DEBUG=puppeteer -extra-plugin:recaptcha node myscript.js

My technique is relatively mediocre, I don’t understand what you mean

when you run your script you have the option to run the debugger. On windows cmd if you run Set DEBUG=puppeteer-extra-plugin:recaptcha && node myscript.js it will log every action puppeteer extra takes

ThevinSilva avatar Jul 13 '22 23:07 ThevinSilva

facing the same issue did any one solved this issue

AjithKumar1996 avatar Nov 30 '23 07:11 AjithKumar1996

facing the same issue did any one solved this issue

AjithKumar1996 avatar Nov 30 '23 07:11 AjithKumar1996