A datacamp downloader based on datacamp-downloader from 'https://github.com/TRoboto/datacamp-downloader/'
- Download courses/tracks using links (even if you didn't complete it)
- Option to download Dataset
Datacamp-dl is a command-line interface tool developed in Python in order to help you download your completed contents on Datacamp and keep them locally on your computer.
Datacamp-dl helps you download all videos, slides and datasets and some additional contents if available (e.g. datasets) and organize them in folders.
The design and development of this tool was inspired by udacimak The version is based on the repo of TRoboto(https://github.com/TRoboto/datacamp-downloader/)
Support!
If you find this CLI helpful, please support the developers by starring this repository.
- Download this repository or clone it using:
git clone https://github.com/GhaziXX/datacamp-dl
- Open the terminal and change the current working directory to the location where you downloaded/cloned the repo, run:
cd PATH
- Download the required dependancies, run:
pip install -r requirements.txt
-t
or--token
YOUR_DATACAMP_AUTH_TOKEN
-l
or--list
T
orC
such that T to list completed tracks and C for compelted courses
-h
or--help
show help message-p
or--path
Your distination to download the files ; default destination is the current directory-v
or--video
to download the videos-e
or--exercises
to download the exercises-d
or--datasets
to download the datasets-a
or--all
to download all the track/course and its data
Note: The tool only downloads slides if -v
and -e
and -a
are not specified.
- First you should configure your token to be able to download your contents, run with your arguments:
python downloader.py -t YOUR_DATACAMP_AUTH_TOKEN -l LIST [-d DESTINATION] [-v] [-e] [-d] [-a]
Examples :
I. To list your completed track(s) and download slides, videos and exercises in the current directory, run:
python downloader.py -s YOUR_DATACAMP_AUTH_TOKEN -l T -v -e
II. To list your completed track(s) and download slides, videos, exercises and datasets in the current directory, run:
python downloader.py -s YOUR_DATACAMP_AUTH_TOKEN -l T -a
III. To list your completed course(s) and download slides and datasets in C:\
directory, run:
python downloader.py -s YOUR_DATACAMP_AUTH_TOKEN -l C -p C:\ -d
Datacamp authentication token can be found in Datacamp website browser cookies. To get your Datacamp authentication, follow these steps:
Firefox
- Visit datacamp.com and log in.
- Open the Developer Tools (press
Cmd + Opt + J
on MacOS orF12
on Windows). - Go to Storage tab, then Cookies >
https://www.datacamp.com
- Find
_dct
key, its Value is the Datacamp authentication token.
Chrome
- Visit datacamp.com and log in.
- Open the Developer Tools (press
Cmd + Opt + J
on MacOS orF12
on Windows). - Go to Application tab, then Storage > Cookies >
https://www.datacamp.com
- Find
_dct
key, its Value is the Datacamp authentication token.
Security Note Datacamp authentication token is a secret key and is unique to you. You should not share it publicly.
Then if you have an active subscription, you should see the following:
Hi, YOUR_NAME
Active subscription found
====================================================================================================
1. Introduction to Databases in Python
2. Building Chatbots in Python
3. Introduction to Python
Enter the id(s) you want to download separated by a space or you can enter 'a-b' to download courses from a to b:
- Enter the id(s) you want to download, where the id is the number of the course or track shown on the console.
Examples:
I. To download the first course enter 1
II. To download the first and third courses enter 1 3
III. To download the first three courses enter 1-3
where 1-3
is the range of the courses you want to download.
This CLI is provided to help you download Datacamp courses for personal use only. Sharing the content of the courses is strictly prohibited under Datacamp's Terms of Use.
By using this CLI, the developers of this CLI are not responsible for any law infringement caused by the users of this CLI.