• Stars
    star
    270
  • Rank 151,293 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 6 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

清华大学新版网络学堂课程自动下载脚本 / A python script to clone all files from learn.tsinghua.edu.cn

清华大学新版网络学堂课程自动下载脚本

Features

  1. 跨平台支持:Windows/Mac/Linux支持双击运行(详情点击
  2. 下载所有课程公告
  3. 下载所有课件
  4. 下载所有作业文件及其批阅情况
  5. 下载所有课程讨论
  6. 下载课程信息
  7. 增量更新
  8. 可选下载课程
  9. 随时按Ctrl+C跳过某个文件的下载
  10. 下载助教课程
  11. 可使用cookie登录
  12. 多刷刷有利于后台成绩提高,比如以下第三条记录是我的:

Dependency

python>=3.5, bs4, tqdm, requests

pip3 install -r requirements.txt --user -U

Usage

learn-stdio.py 中显示的参数和下面是一样的。

下载选项

下载当前学期课程(默认)

./learn.py

下载所有学期课程

./learn.py --all

下载指定学期课程

./learn.py --semester 2018-2019-1 2018-2019-3

下载指定课程

./learn.py --course 计算机网络安全技术 计算机组成原理

跳过某几个课程下载

./learn.py --ignore 数据结构 "实验室科研探究(1)"

移除所有文件夹下完全相同的文件

./learn.py --clear --all

以上参数均可组合使用,比如我想更新大二的课程,但是不想下载数据结构、实验室科研探究、中国近现代史纲要(课程文件太大了):

./learn.py --semester 2017-2018-1 2017-2018-2 2017-2018-3 --ignore 数据结构 "实验室科研探究(2)" 中国近现代史纲要

如果想跳过正在下载的某个文件,按Ctrl+C即可。

登录选项(learn-stdio中禁用)

懒得每次输入info账号密码?创建文件.pass,写入info账号和密码之后可以自动登录,或者是:

./learn.py --_pass your_info_file

其中文件格式为

info账号
info密码

使用Cookie登录而不是输入info密码:

./learn.py --cookie your_cookie_filename

其中cookie文件格式可参考 example_cookie.txt

Common Issues

  • 卡在login:网络原因,看看pulse-secure关了没,重跑试试看
  • 500 : Internal Server Error:请拉取最新版的脚本。网络学堂自2020/2/22开启强制https。
  • info_xxx.csv在Mac下打开是乱码:别用office,用mac自带的软件吧 :)

More Repositories

1

Undergraduate

Collection of undergraduate course homework and projects
C++
1,022
star
2

THU-CST-Cracker

清华大学计算机系课程攻略 Guidance for courses in Department of Computer Science and Technology, Tsinghua University
993
star
3

tuixue.online-visa

https://tuixue.online/visa/ A Real-time Display of U.S. Visa Appointment Status Website 预约美帝签证各个签证处最早时间的爬虫
Python
787
star
4

oi_slides

我的 OI 课件
472
star
5

Fast-Poisson-Image-Editing

A fast poisson image editing implementation that can utilize multi-core CPU or GPU to handle a high-resolution image input.
Python
241
star
6

Computational-Graphics-THU-2018

Computational Graphics - THU Spring 2018
C
175
star
7

mips32-cpu

奋战一学期,造台计算机(编译出的bit文件在release中,可以直接食用)
Verilog
122
star
8

router

造路由器 (清华大学 网络原理课程 2018-2019秋)
C++
67
star
9

CV

My Curriculum Vitae
TeX
51
star
10

os2019

操作系统 2019 ucore labs
C
48
star
11

Artificial-Neural-Network-THU-2018

4 small homeworks
Python
38
star
12

ml

Machine Learning repo
Jupyter Notebook
36
star
13

online-application-course-upload

Python
32
star
14

decaf-complier

编译原理 2018秋 6次PA
Java
30
star
15

CS294-112

CS 294-112 @ UCB Deep RL
Python
21
star
16

simple-news-android-app

Java课程大作业
Java
17
star
17

sudoku-qt5

A Qt5 Sudoku game
C++
14
star
18

GRErecite

GRE 再要你命3K 背单词小程序
Python
14
star
19

LAP-server

A simple Linux+Apache2+PHP server
PHP
9
star
20

DIP2018

Digital image processing (THU Spring 2017-2018)
C
6
star
21

Trinkle23897

4
star
22

VizDoom2018-Track1

Supplemental materials for "Playing FPS Games with Environment-Aware Hierarchical Reinforcement Learning", accepted by IJCAI'19
4
star
23

list_of_people

DIGITAL Command Language
3
star
24

csp

Trival solutions for trivial problems of CCF CSP.
C++
3
star
25

draughts-qt5

C++
1
star
26

mjc-mwe

C
1
star