Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ VV-Captcha-Solver

License: ISC GitHub stars GitHub forks GitHub issues

A powerful, multi-language library for solving VV-Captcha challenges with ease

VV-Captcha-Solver is a comprehensive solution for automating VV-Captcha token generation across multiple programming languages. Whether you're building web scrapers, automation tools, or need to bypass VV-Captcha protection, this library provides a simple and reliable interface.

✨ Features

  • 🌐 Multi-Language Support: Python, TypeScript/JavaScript, and Go implementations
  • πŸš€ High Performance: Optimized for speed and reliability
  • πŸ›‘οΈ Robust Error Handling: Comprehensive error messages and status code handling
  • πŸ“¦ Easy Integration: Simple API with minimal dependencies
  • πŸ”§ Cross-Platform: Works on Windows, macOS, and Linux
  • πŸ“š Well Documented: Clear examples and comprehensive documentation

πŸš€ Quick Start

Python

pip install requests
from src.python.main import solve_vv_captcha

try:
    token = solve_vv_captcha("https://example.com/protected-page")
    print(f"VVCaptcha token: {token}")
except Exception as e:
    print(f"Error: {e}")

TypeScript/JavaScript

npm install axios
import { solveVVCaptcha } from "./src/typescript/index";

async function main() {
  try {
    const token = await solveVVCaptcha("https://example.com/protected-page");
    console.log(`VV Captcha token: ${token}`);
  } catch (error) {
    console.error(error);
  }
}

Go

package main

import (
    "fmt"
    "log"
    "your-module/src/golang"
)

func main() {
    token, err := captcha.SolveVVCaptcha("https://example.com/protected-page")
    if err != nil {
        log.Fatalf("Error: %v", err)
    }
    fmt.Printf("VVCaptcha token: %s\n", token)
}

πŸ“– API Reference

Python API

solve_vv_captcha(url: str) -> str

Parameters:

  • url (str): The target URL containing the VV-Captcha

Returns:

  • str: The captcha token

Raises:

  • Exception: Various exceptions for different error conditions

TypeScript API

solveVVCaptcha(url: string): Promise<string>

Parameters:

  • url (string): The target URL containing the VV-Captcha

Returns:

  • Promise<string>: A promise that resolves to the captcha token

Throws:

  • Error: Various errors for different failure conditions

Go API

func SolveVVCaptcha(targetURL string) (string, error)

Parameters:

  • targetURL (string): The target URL containing the VV-Captcha

Returns:

  • string: The captcha token
  • error: Error if the operation fails

πŸ”§ Installation

Prerequisites

  • Python: 3.6+ with requests library
  • Node.js: 14+ with axios library
  • Go: 1.16+

Setup

  1. Clone the repository:

    git clone https://github.com/alexabrahall/VV-Captcha-Solver.git
    cd VV-Captcha-Solver
  2. Install dependencies:

    For Python:

    pip install requests

    For TypeScript/JavaScript:

    npm install

    For Go:

    go mod tidy

πŸ“ Project Structure

VV-Captcha-Solver/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ python/
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   └── main.py              # Python implementation
β”‚   β”œβ”€β”€ typescript/
β”‚   β”‚   └── index.ts             # TypeScript implementation
β”‚   └── golang/
β”‚       └── captcha.go           # Go implementation
β”œβ”€β”€ examples/
β”‚   β”œβ”€β”€ example.py               # Python usage example
β”‚   β”œβ”€β”€ example.ts               # TypeScript usage example
β”‚   └── example.go               # Go usage example
β”œβ”€β”€ package.json                 # Node.js dependencies
└── README.md                    # This file

🎯 How It Works

The VV-Captcha-Solver works by:

  1. URL Parsing: Extracts the domain from the provided URL
  2. Request Generation: Creates a properly formatted HTTP request to the VV-Captcha endpoint
  3. Header Configuration: Sets appropriate User-Agent and Referer headers
  4. Response Processing: Handles various HTTP status codes and error conditions
  5. Token Extraction: Uses regex pattern matching to extract the captcha token
  6. Error Handling: Provides detailed error messages for troubleshooting

πŸ› οΈ Error Handling

The library provides comprehensive error handling for various scenarios:

Status Code Error Type Description
403 Domain Verification Failed The domain is not VV-Captcha enabled
500 Captcha Verification Failed Error in domain handling
200 Success Token extracted successfully
Other Unexpected Error Check domain settings

πŸ” Examples

Basic Usage

# Python
from src.python.main import solve_vv_captcha

token = solve_vv_captcha("https://uk-umg.com/um-forms/48709-1272284.html")
print(f"Token: {token}")
// TypeScript
import { solveVVCaptcha } from "./src/typescript/index";

const token = await solveVVCaptcha(
  "https://uk-umg.com/um-forms/48709-1272284.html"
);
console.log(`Token: ${token}`);
// Go
import "your-module/src/golang"

token, err := captcha.SolveVVCaptcha("https://uk-umg.com/um-forms/48709-1272284.html")
if err != nil {
    log.Fatal(err)
}
fmt.Printf("Token: %s\n", token)

Error Handling

try:
    token = solve_vv_captcha("https://invalid-domain.com")
except Exception as e:
    print(f"Failed to solve captcha: {e}")

⚠️ Disclaimer

This tool is for educational and research purposes only. Please ensure you comply with the terms of service of any websites you interact with and respect their rate limits and usage policies.

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages