import pyautogui
import requests
import time
from DrissionPage._pages.chromium_page import ChromiumPage
page = ChromiumPage()
page.get('https://zyjs.heb12333.cn')
page.ele('x://input[@class="el-input__inner"]').input("130******817")
page.ele('x://div[@class="el-input el-input--mini el-input--prefix el-input--suffix"]/input').input("Ly****@")
time.sleep(10)
page.ele('x://button[@class="el-button login-btn el-button--primary el-button--mini"]').click()
time.sleep(1)
page.get('https://webzyjs.heb12333.cn/index.html#/v_courseDetails?courseId=NeS75S1e49zyllShwmP5G&trainplanId=33a530966b504e65a9780bc0eabc9ee3&platformId=251&fromPage=selected')
time.sleep(2)
for i in range(1,5):
page.get(f'https://webzyjs.heb12333.cn/index.html#/v_video?platformId=251&trainplanId=33a530966b504e65a9780bc0eabc9ee3&courseId=NeS75S1e49zyllShwmP5G§ionId=NeS75S1e49zyllShwmP5G1-{i}')
time.sleep(10)
# xloc,yloc = pyautogui.position()
# print(xloc,yloc)
# pyautogui.click(950,656,button='left')
# iconloc = pyautogui.locateOnScreen('play.png')
# time.sleep(1)
# pyautogui.click(iconloc)
pyautogui.click(675, 465, button='left')
if i == 1:
times = 40
ztimes = times * 60
if i == 2:
times = 14
ztimes = times * 60
if i == 3:
times = 25
ztimes = times * 60
if i == 4:
times = 40
ztimes = times * 60
time.sleep(ztimes)
i += 1
if i > 5:
break
【自动化】学习观看视频内容,无需人为干预
青龙摄影2024-11-14 15:54
相关推荐
kyriewen7 小时前
大厂面试新规:不会用AI编程,直接挂努力找实习的前端小白7 小时前
useImperativeHandle,useRef,forwardRef的协作关系ZengLiangYi7 小时前
Fastify 加 Electron:把 Web 服务嵌进桌面应用qq_2518364578 小时前
基于nodejs express +vue 天天商城系统设计与实现 (源码 文档)胡萝卜术8 小时前
从零搭建生成式AI项目:OpenAI + Node.js 环境配置与密钥安全实践lichenyang4538 小时前
鸿蒙实战:聊天记录持久化 · 历史会话页面 · 两个真实 Bug 的定位与修复天蓝色的鱼鱼8 小时前
前端也能写 AI Agent?用 Vercel AI SDK 十分钟跑通你的第一个智能助手DevUI团队8 小时前
接口即代码:一个Skill轻松搞定类型定义、接口调用、Mock与调试DevUI团队8 小时前
从截图到企业级前端页面:2个Skill,1次对话,10X效率开发符合设计/编码规范的页面