Git Product home page Git Product logo

bypass-coordinates-click-captcha's Introduction

image

Solving coordinates captcha in Puppeteer

Description

This example clearly demonstrates how to solve click captcha using the 2captcha API coordinate method and JavaScript.

Using this method, you can solve captcha tasks in which you need to click on the right place, such tasks can occur in hCapthca, GeeTest, and others.

When I first came across the coordinate captcha solution, I had to take the time to figure out how it works. That's why I made this instruction and I'll be glad if it saves someone time. What is the difficulty? I solve captchas coordinate captchas using the service 2captcha.com , the returned coordinates are counted from the upper-left corner of the image. When making a click in Puppeteer, you must specify the coordinates from the upper-left corner of the browser. Therefore, it is important to determine the coordinates of the element on the page and add the received coordinates to them. in this case, you will click on the right places.

Clickcaptcha (coordinates) is a captcha in which you need to click on the image by accordance with the instructions. In this example, the captcha located on the page https://2captcha.com/demo/clickcaptcha is solved.

How it work

  1. Open the page with the captcha
  2. Save the image with the captcha.
  3. Submit captcha to 2captcha API to receive a response.
  4. Move the cursor to the original coordinates with the captcha, then move the cursor along the received coordinates and click (done three times)
  5. Click on the "Check" button to check the result.

For clarity, here is a graphical description: image

Run

  1. npm install

  2. Set you 2captcha apikey in index.js file

  3. npm run start

bypass-coordinates-click-captcha's People

Contributors

bernard-dali avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.