Skip to content

CapMonsterCloud/client-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

128 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✅ CapMonster.Cloud — Fast, Reliable CAPTCHA Solving for Automation & Scraping

CapMonster Cloud

CapMonster Cloud Go client

Official Go SDK for the CapMonster Cloud API.

Links

💵 Want to test before depositing? Contact support and we’ll add trial credits to your account.

Installation

go get github.com/ZennoLab/capmonstercloud-client-go

The import path remains github.com/ZennoLab/capmonstercloud-client-go for compatibility.

Minimal example

package main

import (
	"fmt"

	"github.com/ZennoLab/capmonstercloud-client-go/pkg/client"
	"github.com/ZennoLab/capmonstercloud-client-go/pkg/tasks"
)

func main() {
	client := client.New("YourClientKey")

	//get balance
	if balance, err := client.GetBalance(); err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(balance)
	}

	// solve RecaptchaV2 (without proxy)
	recaptchaV2Task := tasks.NewRecaptchaV2TaskProxyless(
		"https://lessons.zennolab.com/captchas/recaptcha/v2_simple.php?level=high",
		"6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd",
	)
	noCache := false
	if result, err := client.SolveRecaptchaV2Proxyless(recaptchaV2Task, noCache, nil); err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(result)
	}

	// solve ImageToTextTask with module
	imgToTextTask := tasks.NewImageToTextTask("BODY").WithCapMonsterModule(tasks.CapMonsterModuleGoogle)
	if result, err := client.SolveImageToText(imgToTextTask, nil); err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(result)
	}
}

Supported task families include reCAPTCHA, GeeTest, Turnstile, image-to-text, and additional task types documented in the public docs.

Supported request classes:

⭐️ If you find this project useful, please give it a star on GitHub!

About

Official Go SDK for the CapMonster Cloud API. Solve reCAPTCHA, GeeTest, Turnstile, image-to-text, and other captcha types from Go applications. Includes GetBalance and Solve methods.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages