Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rand-net/khan-dl
Download courses from khanacademy.org
https://github.com/rand-net/khan-dl
khan-academy khan-academy-download khan-dl khan-downloader lectures video video-downloader youtube-dl
Last synced: 7 days ago
JSON representation
Download courses from khanacademy.org
- Host: GitHub
- URL: https://github.com/rand-net/khan-dl
- Owner: rand-net
- License: mit
- Created: 2021-01-25T09:07:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-05T09:07:35.000Z (6 months ago)
- Last Synced: 2024-12-08T03:02:07.504Z (14 days ago)
- Topics: khan-academy, khan-academy-download, khan-dl, khan-downloader, lectures, video, video-downloader, youtube-dl
- Language: Python
- Homepage:
- Size: 77.1 KB
- Stars: 848
- Watchers: 20
- Forks: 45
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# khan-dl
A python script to download courses from [Khan Academy](https://www.khanacademy.org) using [yt-dlp](https://github.com/yt-dlp/yt-dlp) and [beautifulsoup4](https://pypi.org/project/beautifulsoup4/).
![PyPI](https://img.shields.io/pypi/v/khan-dl?style=flat-square)
![GitHub](https://img.shields.io/github/license/rand-net/khan-dl?style=flat-square)## Installation
```
pip install khan-dl -U
```## Usage
```
$ khan-dl -husage: khan-dl [-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
```- You can download courses interactively on a prompt, which will list all course
domains and their respective courses available with tab completion.```
$ khan-dl -i
_ __ _ _ _ _ _ ____ _
| |/ /| | | | / \ | \ | | | _ \ | |
| ' / | |_| | / _ \ | \| | _____ | | | || |
| . \ | _ | / ___ \ | |\ ||_____|| |_| || |___
|_|\_\|_| |_|/_/ \_\|_| \_| |____/ |_____|Domain: Math
Selected Domain: mathDownloading Courses...
Course: Early math
Selected Course: Early math
Course URL: https://www.khanacademy.org/math/early-mathGenerating Path Slugs.....
Collecting Youtube IDs: 100.0% [========================================================================================================================================>] 4/ 4 eta [00:00]
Downloading Videos: 0.0% [> ] 0/ 75 eta [?:??:??]
```- Download a specific course.
```
$ khan-dl -c "https://www.khanacademy.org/math/early-math"
_ __ _ _ _ _ _ ____ _
| |/ /| | | | / \ | \ | | | _ \ | |
| ' / | |_| | / _ \ | \| | _____ | | | || |
| . \ | _ | / ___ \ | |\ ||_____|| |_| || |___
|_|\_\|_| |_|/_/ \_\|_| \_| |____/ |_____|Looking up https://www.khanacademy.org/math/early-math...
Course URL: https://www.khanacademy.org/math/early-mathGenerating Path Slugs...
Collecting Youtube IDs: 100.0% [========================================================================================================================================>] 4/ 4 eta [00:00]
Downloading Videos: 0.0% [> ] 0/ 75 eta [?:??:??]
```- Download all courses on traditional subjects like Math, Science, Computing, Humanities, Economics-Finance-Domain.
```
$ khan-dl -a_ __ _ _ _ _ _ ____ _
| |/ /| | | | / \ | \ | | | _ \ | |
| ' / | |_| | / _ \ | \| | _____ | | | || |
| . \ | _ | / ___ \ | |\ ||_____|| |_| || |___
|_|\_\|_| |_|/_/ \_\|_| \_| |____/ |_____|Downloading all Courses from all Domains...
Selected Domain: mathDownloading Courses...
Selected Domain: science
Downloading Courses...
Selected Domain: computing
Downloading Courses...
Selected Domain: humanities
Downloading Courses...
Selected Domain: economics-finance-domain
Downloading Courses...
Selected Domain: ela
Downloading Courses...
Course URL: https://www.khanacademy.org/math/early-math
Generating Path Slugs...
Collecting Youtube IDs: 100.0% [========================================================================================================================================>] 4/ 4 eta [00:00]
Downloading Videos: 0.0% [> ] 0/ 75 eta [?:??:??]
```## Other solutions
Khan Academy is also available for offline usage through these Open Source projects:
- [Kolibri](https://learningequality.org/kolibri/)
- [Kiwix](https://www.kiwix.org/)