"""
解决方式:
1:图像识别
2:选择互联网上成熟的验证码破解工具
超级鹰(平台)
3.
"""
# 实现超级鹰pass超级鹰 947172
from selenium.webdriver import Chrome
from include.chaojiying_Python.chaojiying import Chaojiying_Client
# 导入按钮
# from selenium.webdriver.common.keys import Keys
import time
web = Chrome()
web.get('http://www.chaojiying.com/user/login/')
"""
账号: /html/body/div[3]/div/div[3]/div[1]/form/p[1]/input
密码框 /html/body/div[3]/div/div[3]/div[1]/form/p[2]/input
验证码 /html/body/div[3]/div/div[3]/div[1]/form/p[3]/input
图片 /html/body/div[3]/div/div[3]/div[1]/form/div/img
"""
web.find_element_by_xpath('/html/body/div[3]/div/div[3]/div[1]/form/p[1]/input').send_keys("18382866393")
web.find_element_by_xpath('/html/body/div[3]/div/div[3]/div[1]/form/p[2]/input').send_keys("cjy2001767812")
time.sleep(1)
img = web.find_element_by_xpath('/html/body/div[3]/div/div[3]/div[1]/form/div/img').screenshot_as_png
cjy = Chaojiying_Client("********", "********", "947172")
dic = cjy.PostPic(im=img, codetype=1902)
verify = dic['pic_str']
print(dic, "\n", verify)
time.sleep(3)
web.find_element_by_xpath('/html/body/div[3]/div/div[3]/div[1]/form/p[3]/input').send_keys(verify)
time.sleep(5)
web.find_element_by_xpath('/html/body/div[3]/div/div[3]/div[1]/form/p[4]/input').click()
用超级鹰干超级鹰
最新推荐文章于 2024-04-30 11:15:00 发布