New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/sitnikovik/go-anti-captcha

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sitnikovik/go-anti-captcha

  • v0.1.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

go-anti-captcha

Golang AntiCaptcha API client

Usage

package main

import (
	"fmt"
	"github.com/sitnikovik/go-anti-captcha/client/anticaptcha"
	"github.com/sitnikovik/go-anti-captcha/client/anticaptcha/response"
	"os"
)

func main() {
	bb, _ := os.ReadFile("path_to_image")

	c := anticaptcha.NewClient("your_api_key")
	task, err := c.ImageToText(bb, true)
	if err != nil {
		// handle error
		fmt.Println(err)
		return
	}

	// Solution for captcha image
	fmt.Println(task.Solution.Text)
}

You may make request to solve with no waiting for solution. Just pass false as second argument to ImageToText method, and it will return Task object with TaskID field that you may use to get solution later by calling GetTaskByid method.

FAQs

Package last updated on 27 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc