berstend / puppeteer-extra

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

[Feature] Add Language support when submitting Captchas to 2Captcha.com [puppeteer-extra-plugin-recaptcha] #752

Open Mootopia123 opened 1 year ago

Mootopia123 commented 1 year ago

Feature request

Let us know what functionality you'd like to see and what is your use case.

The functionality I am asking for would be to add proper labeling for the language of the Captcha when being sent to 2Captcha.com.

Do you think others might benefit from this as well?

I do believe this can help others, and not just me. This is extremely useful for anyone who wants to solve Captchas that aren't in English already.

Please provide details about:

I am trying to properly label the Language of my Captcha when sending It off to 2Captcha.com to provide accurate solving.

This project works perfectly for English Captchas, but without proper labeling of the language of the Captcha, Workers spend a much longer time trying to solve the Captcha when it is in a non-English language. There is also No Guarantee that the Captcha will be solved in this case.

Id say the easiest way to solve this issue would be to send a simple "lang": in the Post request when sending off the Captcha to 2Captcha.com. You could implement this by adding a Parameter for the language code when you call a page.solveRecaptchas() in your code. Maybe something like page.solveRecaptchas(langCode) .

Best Regards.

bert-w commented 1 year ago

https://github.com/berstend/puppeteer-extra/pull/701 I've made this PR a long while back and it allows for such scenarios. The current implementation for this repo uses only a limited subset of 2captcha's parameters and it would be great if we could just send anything.