kqdz / hcaptcha-ai-solver

A powerful free hcaptcha ai solver.
MIT License
5 stars 1 forks source link

hCaptcha Solver

This project is an advanced hCaptcha solver utilizing the tls_client library for managing sessions and threading for handling concurrent tasks. It also integrates a replier module to provide responses for captcha tasks. This README will guide you through the setup and usage of the solver.

Features

Setup

Prerequisites

Ensure you have the following installed:

Installation

  1. Clone the Repository:

    git clone <repository_url>
    cd <repository_directory>
  2. Install Required Packages:

    pip install -r requirements.txt

Usage

Basic Usage

  1. Start the server hsw_api.py.

  2. Import the Necessary Modules:

    from solver import Solver
  3. Initialize the Solver:

    sitekey = "your_site_key"
    host = "your_host"
    proxy = "your_proxy"  # Optional
    rqdata = "your_rqdata"  # Optional
    
    solver = Solver(sitekey, host, proxy, rqdata)
  4. Solve the Captcha:

    result = solver.solve()
    print(f"Solved Captcha UUID: {result}")

Advanced Configuration

Example Script

Here's an example script to demonstrate the usage:

from solver import Solver

# Configuration
sitekey = "your_site_key"
host = "your_host"
proxy = "your_proxy"  # Optional
rqdata = "your_rqdata"  # Optional

# Initialize Solver
solver = Solver(sitekey, host, proxy, rqdata)

# Solve Captcha
result = solver.solve()

# Output Result
print(f"Solved Captcha: {result}")

Acknowledgements

This project is an improved and fixed version of an existing repository. Special thanks to the original authors for their groundwork. (https://github.com/fCaptcha/hCaptcha-Solver).

Troubleshooting

Contributing

Feel free to contribute to this project by submitting issues or pull requests. Your contributions are greatly appreciated.

License

This project is licensed under the MIT License. See the LICENSE file for more details.