CaptchaRun Official Python SDK
Project description
例子
查询余额
from captcharun import Client, GetBalance, CreateTask
client = Client("你的 TOKEN")
result = client.invoke(GetBalance())
print(result)
# {'cumulativeRecharge': '1100', 'share': '0.0960', 'balance': '103.508', 'credit': '0', 'cumulativeShare': '0.0960'}
创建任务 & 获取状态
from captcharun import Client, GetBalance, GetTask, CreateTask
from captcharun.task import ReCaptchaV2Task
client = Client("你的 TOKEN")
# 创建任务
result = client.invoke(
CreateTask(
ReCaptchaV2Task(
"SITE KEY",
"SITE REFERER",
),
developer="开发者 ID"
),
)
print(result)
# {'taskId': '492ca979-7559-4012-ac31-3134b9ce63f8'}
# 获取任务状态 (异步返回)
result = client.invoke(GetTask(result['taskId']))
print(result)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
captcharun-0.2.3.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file captcharun-0.2.3.tar.gz
.
File metadata
- Download URL: captcharun-0.2.3.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.7.13 Linux/5.15.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8c4c36f66a401e0e6cdc570507f8eafb0f2113d6108edbd30fcf797d05ee875 |
|
MD5 | 90472e9e58b5d3d6a07f097dfa655c20 |
|
BLAKE2b-256 | f269b8c11cb505af5b331156f54f41f569d956837de117db711f9a945434d5b9 |
File details
Details for the file captcharun-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: captcharun-0.2.3-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.7.13 Linux/5.15.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d29c2e90438679e1a71630151dfae725b75c25e91a3ceaccf6704f0a0613c240 |
|
MD5 | d978d2d403343403af77ca3fd0c41368 |
|
BLAKE2b-256 | bec93cae85192222bb2098d2937ed6e7527235df10b86f2121df21d347dca089 |