微小的抗验证/反验证API包装。
tinyantigate的Python项目详细描述
Tinyantigate
===
Tinit(如我所想象的那样)Antigate/Anti-Captcha API包装。它只是antigate api的**子集**。它只能:
*发送验证码
*检查验证码状态
*检查余额
*滥用
\reasons
*[antigate](https://github.com/gotlium/antigate)wrapper使用[grablib](http://grablib.org/),因此它有更多的依赖项(如pycurl、lxml等)。
*[请求](docs.python requests.org)太棒了!
*[antigate](https://github.com/gotlium/antigate)需要captcha的文件名,但在大多数情况下,您需要传递“this”字节(例如,从请求-响应),并且您防御地不想创建文件。
*统一调用
*‘error*’,none(来自【antigate-list】(https://anti-captcha.com/apiddoc】
*‘error http’,状态码(请求错误)
/>反抗原,
你的验证码字节,
超时=5,\
计数=6,)默认值(可以省略)
host=“anti captcha.com”,# /
)
```
This function is just wrapper around creation Antigate object and calling 'run' function.
### Manual usage
##### Creating:
```python
import tinyantigate
a = tinyantigate.Antigate(your_key_from_antigate, host="anti-captcha.com")
```
##### Sending captcha:
```python
status, captcha-id=a.send(你的captcha的字节数)
```````
返回值:
*'ok',captcha-id
```python
status,text=a.status(captcha-id)
``````
返回值:
*'ok',captcha-text=a.status(captcha-id)
``````
```返回值:
*'ok````````````````````````````````
>>>你准备好了,没有(是的,可以**电脑**哈哈没有准备好,it's antigate funny mistake)
##### Abuse:
```python
status, data = a.abuse(captcha_id)
```
Return values:
* "", None
##### Balance:
```python
balance, data = a.balance()
```
Return values:
* balance, None
`balance` as string
##### Run:
```python
status, text=a.run(captcha的字节数,超时=5,计数=6)
````
混合使用'send'和'status'函数。超时是验证码状态检查之间的延迟。count是检查数。
返回值:
与“发送”和“状态”功能相同。
===
Tinit(如我所想象的那样)Antigate/Anti-Captcha API包装。它只是antigate api的**子集**。它只能:
*发送验证码
*检查验证码状态
*检查余额
*滥用
\reasons
*[antigate](https://github.com/gotlium/antigate)wrapper使用[grablib](http://grablib.org/),因此它有更多的依赖项(如pycurl、lxml等)。
*[请求](docs.python requests.org)太棒了!
*[antigate](https://github.com/gotlium/antigate)需要captcha的文件名,但在大多数情况下,您需要传递“this”字节(例如,从请求-响应),并且您防御地不想创建文件。
*统一调用
*‘error*’,none(来自【antigate-list】(https://anti-captcha.com/apiddoc】
*‘error http’,状态码(请求错误)
/>反抗原,
你的验证码字节,
超时=5,\
计数=6,)默认值(可以省略)
host=“anti captcha.com”,# /
)
```
This function is just wrapper around creation Antigate object and calling 'run' function.
### Manual usage
##### Creating:
```python
import tinyantigate
a = tinyantigate.Antigate(your_key_from_antigate, host="anti-captcha.com")
```
##### Sending captcha:
```python
status, captcha-id=a.send(你的captcha的字节数)
```````
返回值:
*'ok',captcha-id
```python
status,text=a.status(captcha-id)
``````
返回值:
*'ok',captcha-text=a.status(captcha-id)
``````
```返回值:
*'ok````````````````````````````````
>>>你准备好了,没有(是的,可以**电脑**哈哈没有准备好,it's antigate funny mistake)
##### Abuse:
```python
status, data = a.abuse(captcha_id)
```
Return values:
* "", None
##### Balance:
```python
balance, data = a.balance()
```
Return values:
* balance, None
`balance` as string
##### Run:
```python
status, text=a.run(captcha的字节数,超时=5,计数=6)
````
混合使用'send'和'status'函数。超时是验证码状态检查之间的延迟。count是检查数。
返回值:
与“发送”和“状态”功能相同。