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
相关推荐
竹林81813 分钟前
从报错到跑通:我用 @solana/web3.js 开发 Solana 钱包连接踩过的三个坑MariaH14 分钟前
Node中操作MySQL还有多久拿退休金15 分钟前
一个 var 让整个团队加班到凌晨——JS 闭包的那些暗坑weedsfly15 分钟前
用了 React/Vue 之后,这些 DOM 操作的坑你踩过几个?Asize18 分钟前
Ajax 入门:从 JSON 序列化到 XMLHttpRequest林希_Rachel_傻希希19 分钟前
react hooks速通笔记Csvn25 分钟前
🚨 组件卸载后还在 setState?一个被你忽视的内存泄漏和报错根源乘风gg37 分钟前
AI GenUI 真正落地时,前端到底要做什么?恋猫de小郭1 小时前
苹果 AirPods 协议,Android 也可以使用完整版 AirPods 能力IT_陈寒1 小时前
JavaScript的默认参数挖坑实录,我掉进去了