heyblackc / yuketanghelper Goto Github PK
View Code? Open in Web Editor NEW大学研究生院雨课堂的脚本仓库,该仓库下的脚本经过小改动后也适用于其他院校的雨课堂网课作业和视频。
大学研究生院雨课堂的脚本仓库,该仓库下的脚本经过小改动后也适用于其他院校的雨课堂网课作业和视频。
可以正常显示用户提示,但your_courses列表为空
谢谢华工大佬
Traceback (most recent call last):
File "c:\Users\LENOVO\Desktop\Untitled-2.py", line 146, in
user_id = re.search(r'"user_id":(.+?)}', id_response.text).group(1).strip()
AttributeError: 'NoneType' object has no attribute 'group'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\LENOVO\Desktop\Untitled-2.py", line 149, in
raise Exception("也许是网路问题,获取不了user_id,请试着重新运行!!! please re-run this program!")
Exception: 也许是网路问题,获取不了user_id,请试着重新运行!!! please re-run this program!
福建某学校测试成功,刷课速度太快了,希望不会被查到,感谢大佬!!
除了readme里的csrftoken和sessionid以外,还需要根据cookie相应的修改:
university_id # 目前脚本在有些地方直接使用了“3078”,全文替换“3078”为需要的值即可。
xtbz
platform_id
多谢原作者!
请问U校园的脚本在哪维护呀
很普通的雨课堂,域名就是 https://www.yuketang.cn ,无法在cookie获取到 niversity-id、university_id、uv_id
研究发现,我所在学校雨课堂校园特供版通过ws来传输微信登录二维码,则可模拟wss请求来获取微信二维码模拟登录,搭配pywebio可以实现扫描二维码推广使用
感谢大佬
感谢owner!VideoHelper完美成功,HomeworkHelper失败,原因可能是接口中已经没有返回answer字段了。
pro["user"],返回:
{'count': 1, 'my_count': 0, 'is_show_answer': False, 'is_show_explain': False}
有的视频一直卡着...
6.3 建设管理人员的职业伦理,尚未学习,现在开始自动学习
{}
学习进度为:19.71%/100% last_point: 1000
{}
学习进度为:20.11%/100% last_point: 2000
{}
学习进度为:40.31%/100% last_point: 3000
{}
学习进度为:40.71%/100% last_point: 4000
{}
学习进度为:60.91%/100% last_point: 5000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 6000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 7000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 8000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 9000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 10000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 11000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 12000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 13000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 14000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 15000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 16000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 17000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 18000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 19000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 20000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 21000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 22000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 23000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 24000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 25000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 26000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 27000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 28000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 29000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 30000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 31000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 32000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 33000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 34000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 35000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 36000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 37000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 38000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 39000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 40000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 41000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 42000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 43000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 44000
{"message":"Partial data anomaly","code":200,"data":{}}
学习进度为:60.91%/100% last_point: 45000
Repect
他校测试主要在添加自己的csrftoken和sessionid基础上:
1更改代码中学校的网站地址:https://xxx.yuketang.cn/....(xxx为自己学校的)
2.根据登录后cookie里的university_id值,更改代码中university-id、uv_id
再次感谢~~
观看视频可用
需要调整部分URL及参数
请问SingleVideoHelper.py里面的这几个''user_id'',''sku_id'' ,''course_id'' ,''course_name'',''classroom_id''怎么找呢?
另外想问下,脚本刷的实在 太快了,会被检测到吗??
对leaf_type为3的
url = "https://gsscut.yuketang.cn/mooc-api/v1/lms/learn/user_article_finish/{}/?cid={}&sid={}&term=latest&uv_id=3078".format(id, classroomid, skuid)
requests.get(url=url, headers=headers)
可以节省几秒钟的时间~
给项目重构了一下,方便学习,优化了部分代码
https://github.com/hewei2723/yuketang
长江雨课堂cookies里面没有university-id,课程好多需要填写的id也不会弄,求详细点的教程
都修改完后无法获取学生id,手动获取输入后又无法获取classroomid,手动链接打开是报错
2023/5/5实测有效!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.