GithubHelp home page GithubHelp logo

mightnire / wrggk_auto Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 44 KB

基于 Python 3 实现的武软公共课(aka 武软e学堂)刷视频脚本。

License: GNU General Public License v3.0

Python 100.00%

wrggk_auto's Introduction

wrggk_auto

基于Python 3实现的武软公共课刷视频脚本。(已于2024年3月16日测试正常使用)

依赖模块lxml,requests。

可在右侧 Release 区下载打包好的程序。

现在可以实现的功能:

[√] 自动刷视频

[×] 自动答题

关于考试答题

1.打开考试页面

http://wrggk.whvcse.edu.cn/Viewer/CourseExam.aspx?id=1079&sid=14184&mid=4297&courseClassId=830&chapterId=14184&pid=ed2eebcb-20f3-4f13-9477-9dd1281c4aab

2.右键查看源代码,在源代码里搜索 iframe,后面能得到类似下面的链接

http://wrggkk.whvcse.edu.cn//excute/DoPaper.aspx?classid=830&stepid=14184&paperid=********-****-****-****-************&courseid=1079&userid=76917&examCountId=&times=1&username=%E6%A8%B1%E5%B0%8F%E8%B7%AF%E9%9C%B2%E5%A8%9C&t=1

3.在链接后加 view=1,就能得到答案。

http://wrggkk.whvcse.edu.cn//excute/DoPaper.aspx?classid=830&stepid=14184&paperid=********-****-****-****-************&courseid=1079&userid=76917&examCountId=&times=1&username=%E6%A8%B1%E5%B0%8F%E8%B7%AF%E9%9C%B2%E5%A8%9C&t=1&view=1

4.做题就不需要我教了吧 (笑)

5.建议低调使用,毕竟武软e学堂首页的这个学习时长排行榜就是“归功于”这个脚本才坏掉的。

{"messagetype":"False","message":"获取学员学习时长排行失败,未知错误:could not execute query
[ SELECT TOP (@p0) ROW_NUMBER() OVER(ORDER BY SUM(d.StudyTime) DESC) AS RowIndex,a.Id,a.UserName,a.TrueName,a.UserImage,SUM(d.StudyTime) StudyTime
                           FROM dbo.UserInfo a INNER JOIN StatUserCoursePost d ON a.id=d.studentId
                           WHERE a.userType='student' AND a.state=1 
                           GROUP BY a.id, a.userName, a.trueName, a.UserImage ]
[SQL: SELECT TOP (@p0) ROW_NUMBER() OVER(ORDER BY SUM(d.StudyTime) DESC) AS RowIndex,a.Id,a.UserName,a.TrueName,a.UserImage,SUM(d.StudyTime) StudyTime
                           FROM dbo.UserInfo a INNER JOIN StatUserCoursePost d ON a.id=d.studentId
                           WHERE a.userType='student' AND a.state=1 
                           GROUP BY a.id, a.userName, a.trueName, a.UserImage]"}

6.祝大家学习愉快~

  答题完毕后可以获取到正确答案。
  
  使用答过题的pid/paperid可以无条件获取答题结果页面。

  在考试页面中的 iframe 的网址复制出来,在后面添加 &view=1 即可查看答案。

  答题后可以通过删除考试页面链接后的&pid=xxx实现重新答题。
magicNumber:8964

wrggk_auto's People

Contributors

mightnire avatar

Stargazers

 avatar

Watchers

 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.