Bypass slider captcha code example
To solve the custom slider captcha we need to calculate the path where we should drag the slider. In most cases all we need is just two points: start and end, and the start point is usually static, so we can find it just once. The second point can be found by human workers of 2Captcha, we can show them an image and provide instructions describing which exact point they need to indicate, they will click the point and 2Captcha API will return the coordinates of this point. The API method we need is Coordinates.
Clone the repo:
git clone git@github.com:2captcha/custom-slider-demo.git cd custom-slider-demo
Set up api key variable (you can get it from account settings):
export APIKEY=your-api-key # windows: set APIKEY=your-api-key
Start demo:
yarn install # npm i yarn start # npm start
Detailed description can be found in the repository.