This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- pdlearn/historical/dingding.py - 移除钉钉登陆相关代码:get_dd、dd_login_status、save_dingding、load_dingding - pdlearn/historical/mydriver.py - #移除钉钉登陆相关代码:dd_login - pdlearn/historical/pandalearning.py - 移除获取cookie和a_log v_log d_log的user_flag函数,放至historical文件夹 - pdlearn/historical/user.py - 移除check_dd钉钉登陆、get_user获取用户文件夹、check_uname检查用户文件夹 - 移除get_a_log文章学习计数、get_v_log视频观看计数、get_d_log每日每周专项答题计数 - pdlearn/answer_question.py - daily、weekly、zhuanxiang中移除无用的d_log和d_num - pdlearn/article_video.py - article、video函数中,a_log更名为article_pointer,v_log更名为video_pointer - 使用json文件和userId与值的映射存储原来的a_log v_log - 尝试制作线程退出没有成功 - pdlearn/color.py - 使用第三方库colorama使命令行输出彩色文字,更为直观 - 定义red yellow blue green的颜色文字转换函数 - pdlearn/config.py - 将原主文件中的cfg相关部分单独放进config.py中管理cfg对象 - pdlearn/file.py - 文件接口,check_directory检查文件夹存在不存在创建文件夹、get_json_data,save_json_data,json数据的存取 - pdlearn/mydriver.py - 使用user/cookies.json的键值对映射存储各用户cookie - 获取cookie的过程中发生错误,打印错误信息方便程序改进 - get_cookie_from_cache以至user.py的get_cookie统一管理 - pdlearn/score.py - get_userId以至user.py统一管理 - pdlearn/threads.py - 尝试制作线程退出没有成功(无法解决的bug:按键盘ctrl-C会导致程序直接僵死) - pdlearn/user.py - 优化了一些import - get_userId获取用户唯一编号 - get_fullname获取用户id和昵称组成的的全称 - get_nickname获取昵称 - save_fullname保存一个新建用户名(id->nickname映射) - get_user_status或许默认用户和用户映射的状态,如没有,新建一个 - update_last_user更新默认用户id - save_user_status保存用户状态 - get_cookie根据userId获取保存的有效cookie,如没有,新建一个 - save_cookies保存浏览器登陆获得的cookie,获取userId并保存id->cookie映射 - get_article_video_json获取视频文章记录 - get_index、save_index存取记录 - get_article_index、save_article_index存取文章记录 - get_video_index、save_video_index存取视频记录 - get_default_userId、get_default_nickname、get_default_fullname获取默认 - check_default_user_cookie检查默认用户cookie是否有效并返回cookie - list_user如有多用户,列出多用户(不要求使用者选择一个) - select_user要求使用者选择一个用户信息(半成品) - shutdown函数改用Windows命令行的timeout,计时中按任意键即可退出程序 - pdlearn/version.py - 基于color/py,将更新信息显示为黄色,以区别常规信息,更新内容显示为红色 - (优化了一些不必要的print...) - 拼写:updata -> update - pandalearning.py - 移除cfg统一管理 - 优化了一些import - 优化了banner打印,多字符串拼接或许优雅一些 - 检查默认用户cookie,检查多用户 - 如cookie无效,打开浏览器登陆,保存cookie,更新默认用户id - 使用article_pointer、video_pointer代替原来的a_log v_log - 视频文章学习函数增加uid参数,便于学习完成后保存用户学习进度 - 删除无用的原d_log(答题记录)
- Loading branch information
1 parent
c65aaae
commit 52120f1
Showing
15 changed files
with
541 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
52120f1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TCPsoftware 这次修改中,建立的
config.py
( https://github.com/TechXueXi/TechXueXi/blob/d5b864491e6e8727e0618f81d3dac3d29aa72be6/SourcePackages/pdlearn/config.py )存在bug,造成打包的文件报错:
请尽快修复,谢谢