Replace the empty string in apiKey.js with the API key from the dashboard. the API can be found where the blurred red box would usually be. As you can imagine, the apiKey.js simply contains our 2Captcha API key which we can find on the 2Captcha dashboard. In here, we’re going to have three files: apiKey.js, initiateRequest.js and getRequestResults.js. Create additional filesĬreate a folder called 2captcha. We can do this by cloning the repo from GitHub here: Step 3. Clone the Scrawly repo into our project folder I named my folder reddit-bypasser but you can call yours whatever you want. Let’s go through the process we have set up to tackle this. To keep things simple, we will be automating the process of creating a new Reddit account, and in doing so we will be bypassing the common ‘I’m not a robot’ CAPTCHA. Okay, now 2Captcha can be used to tackle a wide range of ReCAPTCHAs. Fortunately, you can get up and running with just a few dollars. You’ll also need to deposit some funds in order to use the service. Registering for 2CAPTCHAĢCaptcha needs an API key which you get when you sign up. The response you get is a token that needs to be submitted alongside the form and needs to be entered into a hidden text field. Once you have the request ID then you will need to submit requests to the result endpoint, which we query every so often until the solution is ready. The first request delivers the data necessary for the CAPTCHA to be solved and returns a request ID (or a base64-ed image in the case of image CAPTCHAs). 2Captcha’s main purpose is to solve CAPTCHAs in a quick and accurate way by human employees.ĢCaptcha solves a number of different CAPTCHA styles all with mostly the same two API endpoints. What is 2Captcha?ĢCaptcha is an image and CAPTCHA recognition service. So assuming you either have experience with Puppeteer - or have taken the time to read through the linked article above - let’s move on and see how we can bypass CAPTCHAs with 2Captcha. Check out the article I wrote about this topic below:
#Recaptcha bypass free how to#
Normally I would go through how to go about using Puppeteer, but I have already covered this in detail before. The Puppeteer website provides a bunch of examples, such as taking screenshots and generating PDFs of webpages, automating form submission, testing UI, and so on. Most things that you can do in the browser can be automated with Puppeteer. Puppeteer is a Node.js library that provides a high-level API to control a browser (usually Chrome/Chromium, however Puppeteer does support other browsers such a Firefox). One way that we can programmatically control a website is with Puppeteer. Setting up a simple web automation tool with Puppeteer With that in mind there are still plenty of legitimate reasons why we might want to programmatically control a website and bypass a CAPTCHA in the process. More recently, CAPTCHAS have grown in sophistication, to include mini-games, image recognition, and much more.ĬAPTCHAs are there usually to block bad actors (such as spam bots) from manipulating content for fraudulent or malicious purposes. One of the most common forms of CAPTCHA we see require the user to look at an image of partially obscured letters and type the letters they see. CAPTCHAs (Completely Automated Public Turing test to tell Computers and Humans Apart) are used on a variety of websites when the website wants to verify that the user is not a robot.