ly0 / baidupcsapi

百度网盘api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

输入图片验证码,抛出异常信息

YanShenChun opened this issue · comments

感谢作者的分享,只是在运行时遇到到一个异常问题:

File "/usr/local/lib/python2.7/site-packages/baidupcsapi/api.py", line 267, in _get_captcha
"https://passport.baidu.com/cgi-bin/genimage?" + code_string.decode('utf-8'))
File "/usr/local/lib/python2.7/site-packages/baidupcsapi/api.py", line 68, in default_captcha_handler
verify_code = input('Input verify code > ')
File "", line 1
画板导电
^

在输入图片验证码时,抛出如上异常,

环境:Mac, 14.5.0 Darwin Kernel Version 14.5.0
重现步骤:

from baidupcsapi import PCS
pcs = PCS('username','password')
/var/folders/n5/jqxq12sj5hlgrpjh39c006380000gn/T/tmpsZImLF.png
Input verify code >

Help please!

用Python3