首页
学习
活动
专区
圈层
工具
发布

【爬虫】(三)爬虫之处理简单验证码

可处理简单的数字验证码。 例如:

代码语言:javascript
复制
import pytesseract
from PIL import Image
image = Image.open('vcode.gif')
vcode = pytesseract.image_to_string(image)
print(vcode)

结果:

对于复杂的字母等不可识别。

下一篇
举报
领券