1stCaptcha package for Python
=
[1stcaptcha.com](https://1stcaptcha.com) package for Python3
Solver recaptchaV2, recaptchaV3, hcaptcha, funcaptcha, imageToText, Zalo Captcha,.... Super fast and cheapest.
# Install
```bash
pip install 1stcaptcha
```
# Usage
## init client
```python
from onest_captcha import OneStCaptchaClient
APIKEY = "0aa92cd8393a49698c408ea0ee56c2a5"
client = OneStCaptchaClient(apikey=APIKEY)
```
## solver recaptcha v2:
```python
result = client.recaptcha_v2_task_proxyless(site_url="YOUR_SITE_URL", site_key="YOUR_SITE_KEY", invisible=False)
if result["code"] == 0: # success:
print(result["token"])
else: # wrong
print(result["messeage"])
```
## solver recaptcha v2 enterprise:
```python
result = client.recaptcha_v2_enterprise_task_proxyless(site_url="YOUR_SITE_URL", site_key="YOUR_SITE_KEY")
if result["code"] == 0: # success:
print(result["token"])
else: # wrong
print(result["messeage"])
```
## solver recaptcha v3:
```python
result = client.recaptcha_v3_task_proxyless(site_url="YOUR_SITE_URL", site_key="YOUR_SITE_KEY",
page_action="YOUR_PAGE_ACTION")
if result["code"] == 0: # success:
print(result["token"])
else: # wrong
print(result["messeage"])
```
## solver recaptcha v3 enterprise:
```python
result = client.recaptcha_v3_enterprise_task_proxyless(site_key="YOUR_SITE_KEY",
site_url="YOUR_SITE_URL",
page_action="YOUR_PAGE_ACTION")
if result["code"] == 0: # success:
print(result.get('token'))
print(result.get('user_agent'))
else: # wrong
print(result["messeage"])
```
## solve image2text
```python
result = client.image_to_text(file="1.jpg")
if result["code"] == 0: # success:
print(result["token"])
else: # wrong
print(result["messeage"])
```
## solve recaptchaClick
```python
url_list = ['']
caption = 'cars'
result = client.recaptcha_click(url_list=url_list, caption=caption)
if result["code"] == 0: # success:
print(result["token"])
else: # wrong
print(result["messeage"])
```
## funcaptcha
```python
site_key = "2CB16598-CB82-4CF7-B332-5990DB66F3AB"
site_url = "https://outlook.com/"
result = client.fun_captcha_task_proxyless(site_url, site_key)
if result["code"] == 0: # success:
print(result["token"])
else: # wrong
print(result["messeage"])
```
## hcaptcha
```python
site_key = "f5561ba9-8f1e-40ca-9b5b-a0b3f719ef34"
site_url = "https://discord.com/login"
token = client.h_captcha_task_proxyless(site_key=site_key,
site_url=site_url)
if result["code"] == 0: # success:
print(result["token"])
else: # wrong
print(result["messeage"])
```
Raw data
{
"_id": null,
"home_page": "https://github.com/1stcaptcha/1stcaptcha-python",
"name": "1stcaptcha",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4.0",
"maintainer_email": "",
"keywords": "1stcaptcha,recaptcha,recaptchav3,hcaptcha,funcaptcha,imagetotext,zalo captcha,solver captcha",
"author": "NguyenLinhUET",
"author_email": "nguyenlinh.uet@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c1/a8/cd726c07ac69e0364055eb17f6efd62585240cee18ed08b0b8a7e9acea6e/1stcaptcha-1.0.6.tar.gz",
"platform": null,
"description": "1stCaptcha package for Python\n=\n[1stcaptcha.com](https://1stcaptcha.com) package for Python3\n\nSolver recaptchaV2, recaptchaV3, hcaptcha, funcaptcha, imageToText, Zalo Captcha,.... Super fast and cheapest.\n\n# Install\n\n```bash\npip install 1stcaptcha\n```\n\n# Usage\n\n## init client\n\n```python\nfrom onest_captcha import OneStCaptchaClient\n\nAPIKEY = \"0aa92cd8393a49698c408ea0ee56c2a5\"\nclient = OneStCaptchaClient(apikey=APIKEY)\n```\n\n## solver recaptcha v2:\n\n```python\nresult = client.recaptcha_v2_task_proxyless(site_url=\"YOUR_SITE_URL\", site_key=\"YOUR_SITE_KEY\", invisible=False)\nif result[\"code\"] == 0: # success:\n print(result[\"token\"])\nelse: # wrong\n print(result[\"messeage\"])\n```\n\n## solver recaptcha v2 enterprise:\n\n```python\n\nresult = client.recaptcha_v2_enterprise_task_proxyless(site_url=\"YOUR_SITE_URL\", site_key=\"YOUR_SITE_KEY\")\nif result[\"code\"] == 0: # success:\n print(result[\"token\"])\nelse: # wrong\n print(result[\"messeage\"])\n```\n\n## solver recaptcha v3:\n\n```python\nresult = client.recaptcha_v3_task_proxyless(site_url=\"YOUR_SITE_URL\", site_key=\"YOUR_SITE_KEY\",\n page_action=\"YOUR_PAGE_ACTION\")\nif result[\"code\"] == 0: # success:\n print(result[\"token\"])\nelse: # wrong\n print(result[\"messeage\"])\n```\n\n## solver recaptcha v3 enterprise:\n\n```python\nresult = client.recaptcha_v3_enterprise_task_proxyless(site_key=\"YOUR_SITE_KEY\",\n site_url=\"YOUR_SITE_URL\",\n page_action=\"YOUR_PAGE_ACTION\")\nif result[\"code\"] == 0: # success:\n print(result.get('token'))\n print(result.get('user_agent'))\nelse: # wrong\n print(result[\"messeage\"])\n```\n\n## solve image2text\n\n```python\n\nresult = client.image_to_text(file=\"1.jpg\")\nif result[\"code\"] == 0: # success:\n print(result[\"token\"])\nelse: # wrong\n print(result[\"messeage\"])\n```\n\n## solve recaptchaClick\n\n```python\nurl_list = ['']\ncaption = 'cars'\nresult = client.recaptcha_click(url_list=url_list, caption=caption)\nif result[\"code\"] == 0: # success:\n print(result[\"token\"])\nelse: # wrong\n print(result[\"messeage\"])\n```\n\n## funcaptcha\n\n```python\nsite_key = \"2CB16598-CB82-4CF7-B332-5990DB66F3AB\"\nsite_url = \"https://outlook.com/\"\nresult = client.fun_captcha_task_proxyless(site_url, site_key)\nif result[\"code\"] == 0: # success:\n print(result[\"token\"])\nelse: # wrong\n print(result[\"messeage\"])\n```\n\n## hcaptcha\n\n```python\nsite_key = \"f5561ba9-8f1e-40ca-9b5b-a0b3f719ef34\"\nsite_url = \"https://discord.com/login\"\ntoken = client.h_captcha_task_proxyless(site_key=site_key,\n site_url=site_url)\nif result[\"code\"] == 0: # success:\n print(result[\"token\"])\nelse: # wrong\n print(result[\"messeage\"])\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Solver recaptchaV2, recaptchaV3, hcaptcha, funcaptcha, imageToText, Zalo Captcha,.... Super fast and cheapest",
"version": "1.0.6",
"project_urls": {
"Homepage": "https://github.com/1stcaptcha/1stcaptcha-python",
"Repository": "https://github.com/1stcaptcha/1stcaptcha-python"
},
"split_keywords": [
"1stcaptcha",
"recaptcha",
"recaptchav3",
"hcaptcha",
"funcaptcha",
"imagetotext",
"zalo captcha",
"solver captcha"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e0872822ba128a27c0fb935ac1d7f677dd2f8763a3a2ae2d992f06ff8b07b663",
"md5": "8ba1aa13b3987a29558d6d491d4e9132",
"sha256": "26679a0aae675033d0414dd5637cb80cc9cc5810ea7a297c868d387ef004e37e"
},
"downloads": -1,
"filename": "1stcaptcha-1.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8ba1aa13b3987a29558d6d491d4e9132",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4.0",
"size": 3242,
"upload_time": "2023-08-18T15:44:49",
"upload_time_iso_8601": "2023-08-18T15:44:49.107131Z",
"url": "https://files.pythonhosted.org/packages/e0/87/2822ba128a27c0fb935ac1d7f677dd2f8763a3a2ae2d992f06ff8b07b663/1stcaptcha-1.0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c1a8cd726c07ac69e0364055eb17f6efd62585240cee18ed08b0b8a7e9acea6e",
"md5": "288bcf5fcd6f64e1f535f2b06659a9d8",
"sha256": "95ef5211cb3497a44f081fa4d871ca60426c990362786d9193715bfa17d51e2f"
},
"downloads": -1,
"filename": "1stcaptcha-1.0.6.tar.gz",
"has_sig": false,
"md5_digest": "288bcf5fcd6f64e1f535f2b06659a9d8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4.0",
"size": 2832,
"upload_time": "2023-08-18T15:44:50",
"upload_time_iso_8601": "2023-08-18T15:44:50.900774Z",
"url": "https://files.pythonhosted.org/packages/c1/a8/cd726c07ac69e0364055eb17f6efd62585240cee18ed08b0b8a7e9acea6e/1stcaptcha-1.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-18 15:44:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "1stcaptcha",
"github_project": "1stcaptcha-python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "1stcaptcha"
}