rand-net / khan-dl
- среда, 17 февраля 2021 г. в 00:27:18
Python
Download courses from khanacademy.org
A python script to download courses from Khan Academy using youtube-dl and beautifulsoup4.
pip install khan-dl
git clone https://github.com/rand-net/khan-dl
cd khan-dl
pip install -r requirements.txt
$ khan-dl -h
usage: khan-dl.py [-h] [-i] [-c COURSE_URL]
optional arguments:
-h, --help show this help message and exit
-i, --interactive Enter Interactive Course Selection Mode
-c COURSE_URL, --course_url COURSE_URL
Enter Course URL
-a, --all Download all Courses from all Domains
$ khan-dl -i
Course Domain: Math
Selected Course Domain: Math
Downloading Course List...
Course: Linear algebra
Selected Course Domain: Linear algebra
Generating Path Slugs.....
Downloading Videos....
$ khan-dl -c https://www.khanacademy.org/science/ap-physics-1
$ khan-dl.py -a
$ khan-dl.py -a
Khan Academy is also available for offline usage through these Open Source projects: