Documentation ¶
Index ¶
- type Channels
- type Solver
- func (solver *Solver) SetFuncaptcha(siteKey string, sURL string, siteURL string)
- func (solver *Solver) SetRecaptchaV2(siteKey string, siteURL string)
- func (solver *Solver) SetRecaptchaV3(siteKey string, siteURL string, action string, minScore string)
- func (solver *Solver) SethCaptcha(siteKey string, siteURL string)
- func (solver *Solver) SolvingRuntime()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Solver ¶
type Solver struct { // should I un-export fields? Channels Threads int // 1/2) solving threads TotalCaptchas int // 1) captchas desired Multiplier float64 // 1) solving multiplier, init at 1! // contains filtered or unexported fields }
TODO find more elegant way to create multiple solving instances from one config? TODO break into different chunks for mix-and-match Solver stores parameters and statistics for the current session
func NewFixedSolver ¶
func NewFixedSolver(apiKey string, threads int, totalCaptchas int, multiplier float64, errEnable bool) (solver *Solver, ok bool)
NewFixedSolver returns a Solver instance which solves a fixed number of captchas of a given type.
func NewPersistentSolver ¶
NewPersistentSolver returns a Solver instance which continuously solves captchas until the output channel is closed.
func (*Solver) SetFuncaptcha ¶
SetFuncaptcha sets the URL for solving the designated Funcaptcha.
func (*Solver) SetRecaptchaV2 ¶
SetRecaptchaV2 sets the URL for solving the designated RecaptchaV2.
func (*Solver) SetRecaptchaV3 ¶
func (solver *Solver) SetRecaptchaV3(siteKey string, siteURL string, action string, minScore string)
SetRecaptchaV3 sets the URL for solving the designated RecaptchaV3.
func (*Solver) SethCaptcha ¶
SethCaptcha sets the URL for solving the designated hCaptcha.
func (*Solver) SolvingRuntime ¶
func (solver *Solver) SolvingRuntime()
solvingRuntime manages the threads which solve captchas and closes channels if necessary. TODO maybe return analytics from the function?