Categorygithub.com/arisstath/go-hcaptcha
modulepackage
0.0.0-20211111211635-c3c5ec177afb
Repository: https://github.com/arisstath/go-hcaptcha.git
Documentation: pkg.go.dev

# README

go-hcaptcha

A Go library for solving hCaptchas with YOLOv3 and options for other image recognition systems within twenty seconds.

1v1 me, bro!

Installation

In order to use the main YOLOv3 solver, you'll need to install gocv, and the YOLOv3 config, weights, and names, which can be downloaded from the Go YOLOv3 repository.

Save all three files in a yolo directory in the main directory of your project. go-hcaptcha will use this directory to load the YOLOv3 model.

Example of the solver with YOLOv3.

Basic Usage

In order to solve, you need the site URL (not the domain!), and the site key, which can be found in the HTML of the website with the hCaptcha challenge.

Below is a basic example of how to use the solver with the two using YOLOv3.

c, err := NewChallenge(siteUrl, siteKey)
if err != nil {
    panic(err)
}
err = c.Solve(&YOLOSolver{Log: c.log})
if err != nil {
    c.log.Panic(err)
}
c.log.Info(c.Token())

Credits

2.0.0

The motion data capturing required with hCaptcha would not be possible without the work of @h0nde and his py-hcaptcha solver in Python.

1.0.2:

There were quite a lot of changes with the hCaptcha API, so the solver was updated to reflect these changes, with the generous help of @aw1875 and his puppeteer-hcaptcha solver in JavaScript.

1.0.0

This project was inspired by the work of @JimmyLaurent and his hcaptcha-solver also in JavaScript. I'd like to thank him for his work, and for being a motivation to create this library.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewChallenge creates a new hCaptcha challenge.
NewEventContainer creates a new EventContainer.
NewEventRecorder creates a new EventRecorder.

# Structs

Challenge is an hCaptcha challenge.
ChallengeOptions contains special options that can be applied to new solvers.
Event is a movement event.
EventContainer is a container for event data.
EventRecorder helps record and retrieve movement events.
GuessSolver solves hCaptcha tasks by guessing the solution.
Task is a task assigned by hCaptcha.
YOLOSolver uses the "You Only Look Once" (YOLO) algorithm to solve hCaptcha tasks.

# Interfaces

Solver is an interface to solve hCaptcha tasks.