【自动化】学习观看视频内容,无需人为干预

复制代码
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&sectionId=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
相关推荐
PineappleCoder14 小时前
还在重复下载资源?HTTP 缓存让二次访问 “零请求”,用户体验翻倍
前端·性能优化
拉不动的猪14 小时前
webpack编译中为什么不建议load替换ast中节点删除consolg.log
前端·javascript·webpack
李姆斯14 小时前
Agent时代下,ToB前端的UI和交互会往哪走?
前端·agent·交互设计
源码获取_wx:Fegn089515 小时前
基于springboot + vue健身房管理系统
java·开发语言·前端·vue.js·spring boot·后端·spring
闲谈共视15 小时前
基于去中心化社交与AI智能服务的Web钱包商业开发的可行性
前端·人工智能·去中心化·区块链
CreasyChan15 小时前
C# 反射详解
开发语言·前端·windows·unity·c#·游戏开发
JIngJaneIL15 小时前
基于Java+ vue智慧医药系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot
+VX:Fegn089516 小时前
计算机毕业设计|基于springboot + vue图书管理系统(源码+数据库+文档)
数据库·vue.js·spring boot·后端·课程设计
hashiqimiya17 小时前
两个步骤,打包war,tomcat使用war包
java·服务器·前端
零度@17 小时前
Java中Map的多种用法
java·前端·python