- Published on
How to solve Recaptcha in Browser Automation Studio
- Authors
- Name
- Gen9X
- X
- @gen9xdotcom
Surely when you do automation tools, you will encounter websites that use Captcha. It can be Google recaptcha, hcaptcha, funcaptcha...
In this article, I will guide you to solve recaptcha in BAS.
Prerequisites:
Have Xevil beta 6 license. Nếu bạn chưa có Xevil, bạn có thể mua tại website: BotmasterLabs. I know how to buy it at a discount price, if you want, send me a message and I will show you how to do it.
Or register for online captcha solving tools such as rucaptcha... for example.
You need a proxy to avoid being banned when solving captcha.
If you have satisfied the above conditions, let's get started.
1. Activate the Recaptcha module in BAS
Now open the project and start recording. I will take Google's recaptcha demo page to test it out for you.
Go to this page in BAS https://www.google.com/recaptcha/api2/demo
Right click on the I'm not a robot
checkbox and select the Solve Recaptcha 2.0
function
2. Connect to the captcha solving service
Now you need to provide the parameters to connect to the captcha solving service as I mentioned above. I will use Xevil for demo in this article.
2.1. Xevil configuration
Configure Xevil according to the parameters as shown in the image below:
2.2. Configure connection parameters to Xevil
Select/fill in the following parameters:
Solve Method: rucaptcha-newapi
Key: gen9x (in this case I configured Xevil as
gen9x
, you can change it to any value you want, as long as it matches)Server url: 127.0.0.1:80 (Local address because it runs on the same computer, if it is a different computer, you will need to set up a Public IP address to open a remote access port)
Send current proxy to solver service: true/false (if your script has used a proxy before, you should choose yes for Xevil to use this proxy to solve captcha, otherwise the rate of IP being banned is very high)
That's it, the configuration is done, now let's press run to see if the captcha is solved successfully or not.
Normally, the recaptcha solving speed will last from 30 seconds to 200 seconds to complete.
So Xevil has reported successfully solving Recaptcha, now try clicking the Submit
button to see the result.
And here is the captcha solving result that shows success. Try practicing as I have instructed.