berstend / puppeteer-extra

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

Walmart Press & Hold cpatcha #712

Open senzacionale opened 2 years ago

senzacionale commented 2 years ago

Is it possible to support also Walmart Press & Hold captcha?

image

Thank you

jinmvp commented 2 years ago

You can try switch to recaptcha V2 and solve it.

senzacionale commented 2 years ago

Hi. Thank you. How do you mean switch to recaptcha v2?

jinmvp commented 2 years ago

Hi. Thank you. How do you mean switch to recaptcha v2?

You can try with this link: Here There is a try a different method button there.

senzacionale commented 2 years ago

I try to parse a webpage that has Walmart press & hold capctha. So you mean to use logic to resolve this captcha from recaptcha v2?

jinmvp commented 2 years ago

Which site you wanna try? If its walmart, i already gave u the solution, just read my words carefully.

markcellus commented 2 years ago

This looks very similar to the "press and hold" feature on the ssense.com that I can't seem to figure out :sob: .

You can try switch to recaptcha V2 and solve it.

How do you mean switch to recaptcha v2?

@jinmvp I think @senzacionale is asking how to switch to recaptcha v2. Is that a separate configuration option? I have provider.id option set to 2captcha provider, so v2 would be used automatically when running await page.solveRecaptchas(), is that right?

senzacionale commented 2 years ago

Thank you for this idea. But unfortunatelly Press and Hold captcha can not be resolved with Recaptcha v2.

Which site you wanna try? If its walmart, i already gave u the solution, just read my words carefully.

senzacionale commented 2 years ago

No I want to resolve this Press and Hold captcha. I contact also 2captcha.com support if they have solution.

Answer:

'This is a PerimeterX protection. Currently we don't have any method to bypass that.'

It looks like this captcha can not be resolved.

This looks very similar to the "press and hold" feature on the ssense.com that I can't seem to figure out :sob: .

You can try switch to recaptcha V2 and solve it.

How do you mean switch to recaptcha v2?

@jinmvp I think @senzacionale is asking how to switch to recaptcha v2. Is that a separate configuration option? I have provider.id option set to 2captcha provider, so v2 would be used automatically when running await page.solveRecaptchas(), is that right?

markcellus commented 2 years ago

Yeah, I don't think the puppeteer-extra-plugin-recaptcha package can solve this one. Here's the similar one from SSENSE.com. It has the captcha in an iframe inside of a closed shadow DOM :disappointed: . await page.solveRecaptchas() doesn't work.

image

markcellus commented 2 years ago

@senzacionale I was able to get around it by moving the mouse over the "Press and hold" button and holding it down for a few seconds. Here is my code, but you'll need to update the mouse move coordinates to exactly where the button appears on the page.

await page.mouse.move(200, 450);
await page.mouse.down();
// hold down for six seconds
await new Promise((resolve) => setTimeout(resolve, 6000));

Hope this helps!

senzacionale commented 2 years ago

@markcellus thank you. I will try and let you know.

jinmvp commented 2 years ago

This looks very similar to the "press and hold" feature on the ssense.com that I can't seem to figure out 😭 .

You can try switch to recaptcha V2 and solve it.

How do you mean switch to recaptcha v2?

@jinmvp I think @senzacionale is asking how to switch to recaptcha v2. Is that a separate configuration option? I have provider.id option set to 2captcha provider, so v2 would be used automatically when running await page.solveRecaptchas(), is that right?

There is a button there if the site has alternative challenge. Like walmart, check the pics below. image