Coder Social home page Coder Social logo

ykt_lesson's Introduction

ykt_lesson

intro:用于完成雨课堂的视频播放/答题等功能的自动化脚本。

免责声明

本项目仅用于分享脚本经验,一切使用该脚本的用户所作出的行为与本项目无关!请勿应用于商业途径,请勿擅自转载!如有侵权,请issues告知!

项目介绍

Usage

1.环境配置

chrome浏览器+chromedriver下载

chromedriver下载地址:here

将chromedriver.exe放到chrome安装位置(Aplication文件夹),然后添加环境变量。

p.s:chromedriver下载的版本记得大于chrome浏览器的版本

2.文件介绍

settings.txt是设置文档,在settings.txt下填写你想刷的课程信息,格式为:课程名称:url地址。 (切记该url地址是课程打开后的目录地址!) 然后脚本在执行时便会根据该设置文件打开课程目录url地址,然后爬取该课程所有课件的url地址,存储在txt文件中(以课程名称命名)。

answer_settings.txt是答案设置文档,在这里填写需要答题的课程信息,格式为:课程名称:答案文件地址。 (切记这里的课程名称要与settings.txt对应!) 然后需要在答案文件txt中填写好答案。

p.s.:其中答案文件txt可以为空,但是answer_settings.txt必须需要有相关信息。

3.运行

python main.py

询问是否首次登录时,输入0或1。(1代表首次,0代表非首次)

当首次运行时,需要当自动化脚本打开浏览器,进入首页时,手动点击登录按钮,扫码登录即可。

4.代码需要注意修改的地方

main.py

home_url="https://***.yuketang.cn/pro/portal/home/" #记得填写自己学校雨课堂地址~

settings.txt

改成你的课程名称与对应地址

{
    "工程伦理":"https://.yuketang.cn/pro/lms/8An9nREbzDS/5640353/studycontent"
}

5.其他

本项目以xx学校雨课堂作为测试点进行开发,不同学校版本可能有所不同。

请自行更改部分代码即可。

欢迎二次开发,但请勿应用于商业用途!

ykt_lesson's People

Contributors

850552586 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.