TencentClassDownloader
Tencent classroom video download script
Video tutorial: Large-scale documentary: Tencent Classroom has been shut down. Come and learn how to save the course. It’s super simple.
Running environment Python3, the version I tested was Python3.8
pip install -r requirements.txt
Configure cookies and config.conf, and run main.exe in the directory directly.
Take Google Chrome as an example, open Tencent Video and log in, use F12 on the keyboard, find network - click Doc (if there is no data, refresh the interface), find cookie and other information, copy and paste it into the cookie file in the directory
Modify the directory to the config.conf file,
[QQ] # 你当前课程所属的QQ号
number = 123456789
[url] # 课程链接,一定要按照 https://ke.qq.com/webcourse/xxxxx/xxxxx形式粘贴
url = https://ke.qq.com/webcourse/12345678/123456789
[process] # 下载视频的线程数,视你电脑能力而定,可以尽量多开一些
process_num = 8
[output] # 下载视频存放的路径
save_path = D:\txktDownload
[clarity] # 清晰度,目前只设置了 1 2 3 三种,其中 1 为最清晰, 3为最不清晰, 2为两者之间, 实际情况看你的课程支持哪些清晰度。
clarity = 1
python3 main.py
或
main.exe
Just wait for the download to complete. Downloaded videos will be automatically skipped. If you need to re-download, please delete the original video.
Communication group [https://t.me/teleportmmm]