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.
tls_client
for creating secure sessions.ThreadPoolExecutor
for handling multiple captcha tasks simultaneously.Ensure you have the following installed:
Clone the Repository:
git clone <repository_url>
cd <repository_directory>
Install Required Packages:
pip install -r requirements.txt
Start the server hsw_api.py
.
Import the Necessary Modules:
from solver import Solver
Initialize the Solver:
sitekey = "your_site_key"
host = "your_host"
proxy = "your_proxy" # Optional
rqdata = "your_rqdata" # Optional
solver = Solver(sitekey, host, proxy, rqdata)
Solve the Captcha:
result = solver.solve()
print(f"Solved Captcha UUID: {result}")
Session Headers:
Customize headers within the Solver
class if needed.
Proxy Settings:
Set up proxies by providing the proxy URL when initializing the Solver
.
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}")
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).
Common Issues
Logs and Debugging:
Feel free to contribute to this project by submitting issues or pull requests. Your contributions are greatly appreciated.
This project is licensed under the MIT License. See the LICENSE file for more details.