{"repo":"oxylabs/bypass-captcha-puppeteer","free":true,"listed":false,"github":"https://github.com/oxylabs/bypass-captcha-puppeteer","clone":"git clone https://github.com/oxylabs/bypass-captcha-puppeteer.git","description":"A comprehensive tutorial with real code samples to learn how to bypass CAPTCHA with Puppeteer.","language":null,"stars":131,"topics":["captcha","puppeteer","web-scraping"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"How to Bypass CAPTCHA With Puppeteer - How to Bypass CAPTCHA With Puppeteer Using Puppeteer-stealth to bypass CAPTCHA Using Web Unblocker with Node.JS To access protected websites, you must bypass CAPTCHA. Puppeteer, a Node.js library with a user-friendly API for managing Chrome/Chromium via the DevTools Protocol, can help. It can run in full-browser mode instead of headless mode. Well, why isn’t Puppeteer enough? Automated access using Puppeteer often triggers CAPTCHA or blocks as websites detect the automation. Let’s validate it using the following steps: 1. You must have Node.JS installed on your system. Create a new Node.JS project and install Puppeteer using the following npm command: 2. Import the Puppeteer library in your Node.JS file. 3. Create a new browser instance in headless mode and a new page using the following code: 4. Since we need to take the screenshot on the desktop device, we can set the viewport size using the following code: The setViewPort() method sets the size of the webpage. You can change it according to your device requirements. 5. After that, navigate to a page URL (that you think is a CAPTCHA-protected page) and take a screenshot. For demonstration purposes, the code uses Oxylabs scraping sandbox. Remember to close the browser object at the end. This is what the complete code looks like: Using Puppeteer-stealth to bypass CAPTCHA Here is the step-by-step procedure to implement this CAPTCHA bypass: 1. To start, you need to install the puppeteer-ex","default_branch":null,"files":null,"tree":[],"storefront":"/r/oxylabs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oxylabs/bypass-captcha-puppeteer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}