CLI downloader for EDX video courses. Download all course videos from https://edx.org easily.
Project description
EDX Downloader (for edx.org)
This is a command-line downloader written using Python. This project is inspired by edx-dl but it does not rely on youtube-dl
or any other external library to download the videos. Moreover, at the moment this downloader supports just https://edx.org website only and it doesn't support other similar websites.
Disclaimer: You should not use this software to abuse EDX website. I have written this software with a positive intention, that is to help learners download EDX course videos altogether quickly and easily. I am not responsible if your EDX account gets banned for abuse. You should use this software on your own risks.
Installation
pip3 install edx-downloader
Or clone this repo and install manually:
git clone https://github.com/rehmatworks/edx-downloader.git
cd edx-downloader
pip3 install -r requirements.txt
python3 setup.py install
Usage
Once installed, a command edxdl
becomes available in your terminal. Typing edxdl
and hitting enter in your terminal should bring up the downloader menu. Provide a course URL and hit enter to get started.
Storing Login Credentials
On a private computer, it is always better if the software doesn't ask you for your EDX login and again. To make the software automatically use your login credentials, create a file called .edxauth
in your home directory and provide the credentials in two lines. The first line should contain your email address and the second line should contain your password.
Moreover, edx-downloader
will ask you to save your login details if you have not asked it to skip saving the credentials. If it doesn't ask, you can update your credentials in .edxauth
file any time. On a Unix machine, you can create this file with touch ~/.edxauth
and edit with your favorite editor. A sample .edxauth
file has been included in this repo.
Recommendation
Although this downloader should work on Python 2.7 too, but it is highly recommended that you should use Python 3.x. to avoid any possible issues.
Bugs & Issues
I have developed this package quickly and I have uploaded it for the community. Please expect bugs and issues. Bug fixing and improvements are highly appreciated. Send a pull request if you want to improve it or if you have fixed a bug.
Normal users can use the issues section to report bugs and issues for this software. Before opening a new issue, please go through existing ones to be sure that your question has not been asked and answered yet.
Credits
- Python - The programming language that I have used
- beautifulsoup4 - For HTML parsing
- colorful - To show colorful text
- fake-useragent - For a dynamic user-agent
- requests - To make HTTP requests
- tqdm - To show download progress bar
- validators - To validate URL and email input
And thanks to several indirect dependencies that the main dependencies are relying on.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file edx-downloader-1.0.3.tar.gz
.
File metadata
- Download URL: edx-downloader-1.0.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ba2b296a2d3b51425f8bef8ef0da178f5b0be26a8f6287329ff8ed333beafbc |
|
MD5 | 7348a100fd93ae4b7453020d846b8271 |
|
BLAKE2b-256 | 670f8a5bd6dee089bccd7dccf8774cbf3dda9ff6536af202b21409daa483e296 |