简单反验证码库
anticaptcha的Python项目详细描述
anticaptcha
==
>简单的文本图像anticaptcha库。
>;>;pip install anticaptcha
……代码::来自anticaptcha的python
import anticaptcha
ac=anticaptcha('api_token')
以open('captcha.png','rb')作为img:
response=ac.createtask(img.read())
task廑id=response['taskid']
result=ac.gettaskresult(task廑id)
solution=result['solution']['text']
test with:python-m脓包
==
>简单的文本图像anticaptcha库。
>;>;pip install anticaptcha
……代码::来自anticaptcha的python
import anticaptcha
ac=anticaptcha('api_token')
以open('captcha.png','rb')作为img:
response=ac.createtask(img.read())
task廑id=response['taskid']
result=ac.gettaskresult(task廑id)
solution=result['solution']['text']
test with:python-m脓包