识别中英文混合验证码

"""
author:张鑫
date:2021/12/16 11:29
"""
'''
img_code
'''
from selenium import webdriver

from 技术提升.工具.chaojiying.chaojiying import get_code

url = 'https://i.yiche.com/authenservice/login.html?returnurl=https%3A%2F%2Fwww.yiche.com%2F%3Focid%3DMSNCNLG6-3'
driver = webdriver.Chrome()
driver.get(url)
driver.find_elements_by_id('img_code')
els = driver.save_screenshot('易车.png')
number = get_code('./易车.png', 6003)
print(number)
driver.close()

  

posted @ 2021-12-16 11:30  布都御魂  阅读(42)  评论(0编辑  收藏  举报