Code Monkey home page Code Monkey logo

yucoursescript's Introduction

yuCourseScript

刷云课堂视频脚本,使用python编写。

2021-9-15 :v1

使用

其中yuCourseScript.ipynb是notebook的格式,和main.py选择一个即可

为了使用,我们需要去获取几个请求的参数。

  1. 使用手机扫码登陆云课堂,
  2. 使用F12进入开发者模式,点击network。
  3. 任意打开一个课程的视频。在开发者模式找到name为heartbeat/的请求
  4. 在请求中拿到以下需要修改的参数,并更新到程序中。

csrftoken,sessionid,cc,u

#所需要的参数,
#从那获得?微信扫码,进去之后按f12,打开network。找到heartbeat的请求。在请求中分别找到
user_id = 45104243
cc = "9FE88481F8F872F39C33DC5901307461"
csrftoken = "TFnYP9W2OGUh3EEMN3M25bgyR5lqG99w"
sessionid = "mufi4soizcrv8w3gtphutbds0bekq0j8"
# 刷前两门课程。
num_coures = 2
#请求间隔时间。
sleep_time = 1.0
#学校ID,郑大默认是2824
university_id = '2824'

参考1 参考2

yucoursescript's People

Contributors

wvdon avatar

Stargazers

 avatar

Watchers

 avatar

yucoursescript's Issues

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.