berstend / puppeteer-extra

💯 Teach puppeteer new tricks through plugins.
https://extra.community
MIT License
6.54k stars 744 forks source link

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

Open shubham0804 opened 3 years ago

shubham0804 commented 3 years ago

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.

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!

long369486562 commented 3 years ago

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

berstend commented 3 years ago

Does the debug log contain something interesting here?

DEBUG=puppeteer-extra-plugin:recaptcha node myscript.js
long369486562 commented 3 years ago

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

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

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

long369486562 commented 3 years ago

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

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

image

long369486562 commented 3 years ago

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

krthush commented 2 years ago

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

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

shubham0804 commented 2 years ago

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

krthush commented 2 years ago

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?

ThevinSilva commented 2 years ago

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

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

AjithKumar1996 commented 1 year ago

facing the same issue did any one solved this issue

AjithKumar1996 commented 1 year ago

facing the same issue did any one solved this issue