Popularity
1.2
Declining
Activity
0.0
Stable
5
3
4
Programming language: Go
License: MIT License
go-anti-captcha alternatives and similar packages
Based on the "Third-party APIs" category.
Alternatively, view go-anti-captcha alternatives based on common mentions on social networks and blogs.
-
go-openai
OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go -
telegram-bot-api
Golang bindings for the Telegram Bot API -
goamz
Popular fork of goamz which adds some missing API calls to certain packages. -
webhooks
:fishing_pole_and_fish: Webhook receiver for GitHub, Bitbucket, GitLab, Gogs -
githubql
Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql). -
twitter-scraper
Scrape the Twitter frontend API without authentication with Golang. -
geo-golang
Go library to access geocoding and reverse geocoding APIs -
lark
Feishu(飞书)/Lark Open API Go SDK, Support ALL Open API and Event Callback. -
openaigo
OpenAI GPT3/3.5 and GPT4 ChatGPT API Client Library for Go, simple, less dependencies, and well-tested -
VK SDK for Golang
Golang module for working with VK API -
go-lark
An easy-to-use SDK for Feishu and Lark Open Platform (Instant Messaging API only) -
hipchat (xmpp)
A golang package to communicate with HipChat over XMPP -
gostorm
GoStorm is a Go library that implements the communications protocol required to write Storm spouts and Bolts in Go that communicate with the Storm shells. -
clarifai
DEPRECATED: please use https://github.com/Clarifai/clarifai-go-grpc -
go-trending
Go library for accessing trending repositories and developers at Github. -
simples3
Simple no frills AWS S3 Golang Library using REST with V4 Signing (without AWS Go SDK) -
hipchat
This project implements a Go client library for the Hipchat API. -
go-tgbot
Golang telegram bot API wrapper, session-based router and middleware -
cachet
Go(lang) client library for Cachet (open source status page system). -
google-play-scraper
Golang scraper to get data from Google Play Store
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of go-anti-captcha or a related project?
README
go-anti-captcha
Go library for accessing the anti-captcha.com API
Usage
See
import "github.com/andrewdruzhinin/go-anti-captcha/anticaptcha"
Get account balance:
package main
import (
"fmt"
"github.com/andrewdruzhinin/go-anti-captcha/anticaptcha"
)
func main() {
client := anticaptcha.NewClient("apiKey") //Set your apiKey from anti-captcha.com
balance, err := client.Account.GetBalance()
if err != nil {
fmt.Printf("error: %v\n\n", err)
} else {
fmt.Printf("Balance: %f\n", balance)
}
}
Upload captcha from url and get text:
package main
import (
"fmt"
"github.com/andrewdruzhinin/go-anti-captcha/anticaptcha"
)
func main() {
client := anticaptcha.NewClient("apiKey") //Set your apiKey
ID, err := client.Captcha.UploadCaptchaFromURL("https://s3-us-west-2.amazonaws.com/captcha-test/1045.png")
if err != nil {
fmt.Printf("error: %v\n", err)
} else {
fmt.Printf("Captcha ID: %d\n", ID)
res, err := client.Captcha.GetText(ID)
if err != nil {
fmt.Printf("error: %v\n", err)
}
fmt.Printf("Captcha Text: %s\n", res)
}
}
Take a look at ./examples/ to know more how to use anti-captcha api.
Additional captcha parameters
You can use optional captcha parameters:
package main
import (
"fmt"
"github.com/andrewdruzhinin/go-anti-captcha/anticaptcha"
)
func main() {
client := anticaptcha.NewClient("APIKey")
client.CaptchaAdditionalParams.EnablePhrate()
client.CaptchaAdditionalParams.EnableAllowEmpty()
client.CaptchaAdditionalParams.AddComment("What color is the sky?")
fmt.Println(client.CaptchaAdditionalParams.LoadParams())
ID, err := client.Captcha.UploadCaptchaFromURL("https://s3-us-west-2.amazonaws.com/captcha-test/1045.png")
if err != nil {
fmt.Printf("error: %v\n", err)
} else {
fmt.Printf("Captcha ID: %d\n", ID)
res, err := client.Captcha.GetText(ID)
if err != nil {
fmt.Printf("error: %v\n", err)
}
fmt.Printf("Captcha Text: %s\n", res)
}
Parameter | Type | Possible values | Description |
---|---|---|---|
phrase | integer | 0, 1 | 0 = default value, 1 = captcha has 2-3 words |
regsense | integer | 0, 1 | 0 = default value, 1 = captcha is case sensitive |
numeric | integer | 0, 1, 2 | 0 = default value, 1 = captcha consists of digits only, 2 = captcha does not contain any digits |
calc | integer | 0, 1 | 0 = default value, 1 = arithmetical operation must be performed |
min_len | integer | 0..20 | 0 = default value, 1..20 = minimum length of captcha text required to input |
max_len | integer | 0..20 | 0 = default value, 1..20 = maximum length of captcha text required to input |
is_russian | integer | 0, 1 | 0 = default value, 1 = captcha goes to Russian Queue |
soft_id | integer | AppCenter Application ID used for comission earnings | |
header_acao | integer | 0, 1 | 0 = default value, 1 = API sends Access-Control-Allow-Origin: * parameter in response header. (Required for cross-domain AJAX requests from client-side applications). |
type | string | recaptcha2, recaptcha2_44, recaptcha2_24, audio | empty = default value, recaptcha2 = Use this value for Recaptcha2 images. Image must have size ratio 1x1, minimum height 200 pixels and come along with "comment" parameter. This is where you should specify English name of the object which worker must choose (cat, road sign, burger, etc.). See workers interface screenshot. recaptcha2_44 = Same thing as "recaptcha2" but we will put this captcha in a mask of 16 squares (4 x 4). recaptcha2_24 = Recaptcha2 in a mask of 8 squares (2 x 4). It is very important that you send only captcha image without blue heading or any comments embeded in image. Examples of how some of our clients misunderstand this you can see here and here. audio = Use this value to send audio captchas in MP3 format. |
comment | string max (100 bytes) | empty = default value, Option 1. Send along with any captcha to make it more clear for workers. Option 2. Send without captcha if you just want to ask a question (example: "What color is the sky?") | |
allow_empty | integer | 0, 1 | 0 = default value, 1 = Allow empty response for Google Recaptcha. This is useful if you want to allow our workers to mark captcha as unsolvable because no matching objects were found on your captcha. If you send value "1", workers will have a button "no objects found" with each recaptcha marked this way.. If worker pushed this button, API will return text "EMPTY_ANSWER" as captcha result. |