Coder Social home page Coder Social logo

hcaptchasolver's Introduction

Hcaptchasolver

An extension for the hcaptcha-solver-go package I made, allowing services that use other languages to use the solver. It uses Fiber to run an HTTP server on port 80, and then handles captcha solving requests.

Usage

If you would like to use Google's Vision API to determine answers, set the GOOGLE_APPLICATION_CREDENTIALS environment variable on your PC. If not set, it will default to randomly guessing.

After setting the environment variable, do the following:

go install https://github.com/NoCPS/Hcaptchasolver
hcaptcha-solver-api

If all goes well, you should see the following:

hCaptcha solver API is now running on port 80!

The console will now display information about ongoing requests.

Configuration

You can configure certain options of the API to your liking. Currently, you can change the Authorization header, the port, and the solution deadline.

API Usage

Solving tasks are handled with a POST request to example.org/solve. Make sure your Authorization header matches the one in your config. Your request body should be the following:

{"site_url": "example.com"}

For additional options, refer to [this portion] of the original package. An example of additional options in JSON are as follows:

{"site_url": "example.com", "options": {"site_key": "8fc2ffd0-a7a5-4345-a357-97d389a9a635"}}

After sending your request, a response will be returned in JSON which will be something like:

{"captcha_code": "P0_eyJ0eXAiOiJKV1Q..."}

You can then use this captcha code in your application.

hcaptchasolver's People

Contributors

nocps 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.