puppeteer-extra
puppeteer-extra copied to clipboard
Using puppeteer-extra-plugin-recaptcha, unable to submit
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!
I encountered the same problem,
Analyze the network request for the submit button
Does the debug log contain something interesting here?
DEBUG=puppeteer-extra-plugin:recaptcha node myscript.js
调试日志是否包含一些有趣的内容?
DEBUG=puppeteer-extra-plugin:recaptcha node myscript.js
My technique is relatively mediocre, I don’t understand what you mean
调试日志是否包含一些有趣的内容?
DEBUG=puppeteer-extra-plugin:recaptcha node myscript.js
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
https://discord.com/channels/737009125862408274/737009125862408277/970702523960811581
was further discussed in stealth discord here, still unsolved but a few investigations were run
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
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?
调试日志是否包含一些有趣的内容?
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
facing the same issue did any one solved this issue
facing the same issue did any one solved this issue