|
1 | | -# Zennolab.CapMonsterCloud.Client |
| 1 | +# CapMonster Python Captcha Solver & Anti-Bot Bypass API Library |
2 | 2 |
|
3 | | -> [!IMPORTANT] |
4 | | -> This repository has been moved and is no longer maintained. |
5 | | -> |
6 | | -> New repository: [https://github.com/CapMonsterCloud/client-python](https://github.com/CapMonsterCloud/client-python) |
7 | | -> |
8 | | -> Please update your references and use the new repository for all future development. |
| 3 | +[](https://pypi.org/project/capmonstercloudclient/) |
| 4 | +[](https://pypi.org/project/capmonstercloudclient/) |
| 5 | +[](https://pypi.org/project/capmonstercloudclient/) |
| 6 | +[](https://opensource.org/licenses/MIT) |
9 | 7 |
|
| 8 | +Official Python 3 package for easy integration with the [CapMonster Cloud](https://capmonster.cloud/) API — the fastest and most reliable automated captcha-solving service. |
10 | 9 |
|
11 | | -Official python client library for [capmonster.cloud](https://capmonster.cloud/) captcha recognition service |
| 10 | +This wrapper allows you to seamlessly integrate high-speed AI captcha recognition into your Python web scraping, data extraction, and testing workflows. It is fully compatible with popular browser automation frameworks like **Selenium, Playwright, Puppeteer, Scrapy, and BeautifulSoup**. |
12 | 11 |
|
13 | | -## Installation |
| 12 | +🔥 **[Create a Free Account & Get Your API Key](https://dash.capmonster.cloud/Account/SignUp?utm_source=github&utm_medium=referral&utm_campaign=python_repo_readme)** to start bypassing bot protections instantly! |
14 | 13 |
|
15 | | - python3 -m pip install capmonstercloudclient |
| 14 | +## 🛠️ Key Features |
16 | 15 |
|
17 | | -## Usage |
| 16 | +- ⚡ **Fast & Fully Automated:** Solve captchas in seconds without human intervention. |
| 17 | +- 🤖 **100% AI-Powered:** Machine learning algorithms ensure the highest success rate. |
| 18 | +- 🌐 **Browser Automation Ready:** Easily plug into your Selenium or Playwright scripts. |
| 19 | +- 🛡️ **Advanced WAF Bypass:** Effortlessly bypass Cloudflare Turnstile, DataDome, Amazon WAF, and Imperva. |
| 20 | +- 💰 **Cost-Effective:** One of the most affordable solutions on the market for scale. |
18 | 21 |
|
19 | | -*** |
20 | | - import asyncio |
| 22 | +## ⚙️ Installation |
21 | 23 |
|
22 | | - from capmonstercloudclient import CapMonsterClient, ClientOptions |
23 | | - from capmonstercloudclient.requests import RecaptchaV2ProxylessRequest |
| 24 | +Install the CapMonster Cloud Python client using pip: |
24 | 25 |
|
25 | | - client_options = ClientOptions(api_key=<YOUR_API_KEY>) |
26 | | - cap_monster_client = CapMonsterClient(options=client_options) |
| 26 | +```bash |
| 27 | +pip install capmonstercloudclient |
| 28 | +``` |
27 | 29 |
|
28 | | - async def solve_captcha(): |
29 | | - return await cap_monster_client.solve_captcha(recaptcha2request) |
| 30 | +## 🚀 Quick Start & Usage Example |
30 | 31 |
|
31 | | - recaptcha2request = RecaptchaV2ProxylessRequest(websiteUrl="https://lessons.zennolab.com/captchas/recaptcha/v2_simple.php?level=high", |
32 | | - websiteKey="6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd") |
| 32 | +**Prerequisite:** You need an active CapMonster API key. [Grab it from your dashboard](https://dash.capmonster.cloud/Account/SignUp?utm_source=github&utm_medium=referral&utm_campaign=python_repo_readme). |
33 | 33 |
|
| 34 | +Below is a standard example of solving a reCAPTCHA v2 (Proxyless) using `asyncio`. You can easily pass the resulting token into your Selenium or Playwright browser instances. |
| 35 | + |
| 36 | +```python |
| 37 | +import asyncio |
| 38 | + |
| 39 | +from capmonstercloudclient import CapMonsterClient, ClientOptions |
| 40 | +from capmonstercloudclient.requests import RecaptchaV2ProxylessRequest |
| 41 | + |
| 42 | +# Initialize the client with your CapMonster Cloud API key |
| 43 | +client_options = ClientOptions(api_key="<YOUR_API_KEY>") |
| 44 | +cap_monster_client = CapMonsterClient(options=client_options) |
| 45 | + |
| 46 | +async def solve_captcha(): |
| 47 | + # Setup the reCAPTCHA v2 request |
| 48 | + recaptcha2request = RecaptchaV2ProxylessRequest( |
| 49 | + websiteUrl="https://lessons.zennolab.com/captchas/recaptcha/v2_simple.php?level=high", |
| 50 | + websiteKey="6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd" |
| 51 | + ) |
| 52 | + # Await the solution token |
| 53 | + return await cap_monster_client.solve_captcha(recaptcha2request) |
| 54 | + |
| 55 | +if __name__ == "__main__": |
34 | 56 | responses = asyncio.run(solve_captcha()) |
35 | | - print(responses) |
36 | | -*** |
| 57 | + print("Captcha Solved! Token:", responses) |
| 58 | +``` |
| 59 | + |
| 60 | +## 🧩 Supported Captcha Recognition Types |
37 | 61 |
|
38 | | -Supported captcha recognition requests: |
| 62 | +Our Python API wrapper supports almost all modern anti-bot challenges. Click on the links below to view detailed API documentation and payload examples. |
39 | 63 |
|
40 | | -- [GeeTestProxylessRequest](https://zenno.link/doc-geetest-en) |
| 64 | +### 🔹 Classic Captchas |
| 65 | +- [AmazonWafRequest](https://docs.capmonster.cloud/docs/captchas/amazon-task) - Amazon WAF Bypass |
| 66 | +- [BinanceTaskRequest](https://docs.capmonster.cloud/docs/captchas/binance) - Binance Captcha Solver |
| 67 | +- [BinanceTaskProxylessRequest](https://docs.capmonster.cloud/docs/captchas/binance) |
| 68 | +- [GeeTestProxylessRequest](https://zenno.link/doc-geetest-en) - GeeTest Solver |
41 | 69 | - [GeeTestRequest](https://zenno.link/doc-geetest-proxy-en) |
42 | | -- [ImageToTextRequest](https://zenno.link/doc-ImageToTextTask-en) |
43 | | -- [RecaptchaV2ProxylessRequest](https://zenno.link/doc-recaptcha2-en) |
| 70 | +- [ImageToTextRequest](https://zenno.link/doc-ImageToTextTask-en) - Standard OCR (Image-to-Text) |
| 71 | +- [RecaptchaV2ProxylessRequest](https://zenno.link/doc-recaptcha2-en) - Google reCAPTCHA v2 |
44 | 72 | - [RecaptchaV2Request](https://zenno.link/doc-recaptcha2-proxy-en) |
45 | | -- [RecaptchaV3ProxylessRequest](https://zenno.link/doc-recaptcha3-en) |
| 73 | +- [RecaptchaV3ProxylessRequest](https://zenno.link/doc-recaptcha3-en) - Google reCAPTCHA v3 |
46 | 74 | - [RecaptchaV2EnterpriseProxylessRequest](https://zenno.link/doc-recaptcha2e-en) |
47 | 75 | - [RecaptchaV2EnterpriseRequest](https://zenno.link/doc-recaptcha2e-proxy-en) |
48 | | -- [TurnstileProxylessRequest](https://zenno.link/doc-turnstile-en) |
| 76 | +- [TurnstileProxylessRequest](https://zenno.link/doc-turnstile-en) - Cloudflare Turnstile Challenge |
49 | 77 | - [TurnstileRequest](https://zenno.link/doc-turnstile-proxy-en) |
50 | | -- [RecaptchaComplexImageTaskRequest](https://zenno.link/doc-complextask-rc-en) |
51 | | -- [DataDomeCustomTaskRequest](https://docs.capmonster.cloud/docs/captchas/datadome) |
52 | | -- [TenDiCustomTaskRequest](https://docs.capmonster.cloud/docs/captchas/tendi) |
| 78 | + |
| 79 | +### 🔹 Custom Tasks (Anti-Bot & Advanced WAFs) |
53 | 80 | - [BasiliskCustomTaskRequest](https://docs.capmonster.cloud/docs/captchas/Basilisk-task) |
54 | | -- [AmazonWafRequest](https://docs.capmonster.cloud/docs/captchas/amazon-task) |
55 | | -- [BinanceTaskRequest](https://docs.capmonster.cloud/docs/captchas/binance) |
56 | | -- [BinanceTaskProxylessRequest](https://docs.capmonster.cloud/docs/captchas/binance) |
57 | | -- [ImpervaCustomTaskRequest](https://docs.capmonster.cloud/docs/captchas/incapsula) |
| 81 | +- [DataDomeCustomTaskRequest](https://docs.capmonster.cloud/docs/captchas/datadome) - DataDome Slider & Interstitial bypass |
| 82 | +- [ImpervaCustomTaskRequest](https://docs.capmonster.cloud/docs/captchas/incapsula) - Imperva / Incapsula bypass |
58 | 83 | - [ImpervaCustomTaskProxylessRequest](https://docs.capmonster.cloud/docs/captchas/incapsula) |
| 84 | +- [TenDiCustomTaskRequest](https://docs.capmonster.cloud/docs/captchas/tendi) |
| 85 | + |
| 86 | +### 🔹 Complex Image Tasks |
| 87 | +- [RecaptchaComplexImageTaskRequest](https://zenno.link/doc-complextask-rc-en) (Grid / Dynamic Image Selection) |
| 88 | + |
| 89 | +--- |
| 90 | + |
| 91 | +### 💡 Ready to supercharge your web automation? |
| 92 | +Join thousands of developers effortlessly bypassing captchas. |
| 93 | +👉 **[Sign up for CapMonster Cloud](https://capmonster.cloud/) today and boost your scraper's success rate!** |
0 commit comments