Skip to main content

Download your completed courses on Datacamp easily!

Project description

Datacamp Downloader

GitHub license PyPI version Documentation Status

Downloads GitHub stars GitHub forks GitHub contributors

Table of Contents

Update

Datacamp Downloader V3.2 is now available. The major change is that the tool now uses selenium for the backend. See changelog for version 3.0, 3.1 and 3.2.

Description

Datacamp Downloader 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 Downloader helps you download all videos, slides, audios, exercises, transcripts, datasets and subtitles in organized folders.

The design and development of this tool was inspired by udacimak

Datacampers!

If you find this CLI helpful, please support the developers by starring this repository.

Installation

PIP

If you use pip, you can install datacamp-downloader with:

pip install datacamp-downloader

From source

You can directly clone this repo and install the tool with:

pip install git+https://github.com/TRoboto/datacamp-downloader.git

Autocompletion

To allow command autocompletion with [TAB][TAB], run:

datacamp --install-autocompletion

Then restart the terminal.

Note: autocompletion might not be supported by all operating systems.

Documentation

The available commands with full documentation can be found in docs

Getting Started

Login

  • To login using your username or password, run:
datacamp login -u [USERNAME] -p [PASSWORD]

or simply run:

datacamp login
  • To login using Datacamp authentication token, run:
datacamp set-token [TOKEN]

Datacamp authentication token can be found in Datacamp website browser cookies. To get your Datacamp authentication, follow these steps:

Firefox

  1. Visit datacamp.com and log in.
  2. Open the Developer Tools (press Cmd + Opt + J on MacOS or F12 on Windows).
  3. Go to Storage tab, then Cookies > https://www.datacamp.com
  4. Find _dct key, its Value is the Datacamp authentication token.

Chrome

  1. Visit datacamp.com and log in.
  2. Open the Developer Tools (press Cmd + Opt + J on MacOS or F12 on Windows).
  3. Go to Application tab, then Storage > Cookies > https://www.datacamp.com
  4. 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.


If you provided valid credentials, you should see the following:

Hi, YOUR_NAME
Active subscription found

Active subscription is not required anymore.

Download

First, you should list your completed courses/track.

To list your completed courses, run:

datacamp courses

To list your completed tracks, run:

datacamp tracks

Similar output to this should appear with your completed courses/tracks:

+--------+------------------------------------------+------------+------------+------------+
| ID     | Title                                    | Datasets   | Exercises  | Videos     |
+--------+------------------------------------------+------------+------------+------------+
| 1      | Introduction to Python                   | 2          | 46         | 11         |
+--------+------------------------------------------+------------+------------+------------+
| 2      | Introduction to SQL                      | 1          | 40         | 1          |
+--------+------------------------------------------+------------+------------+------------+
| 3      | Intermediate Python                      | 3          | 69         | 18         |
+--------+------------------------------------------+------------+------------+------------+
| 4      | Introduction to Data Science in Python   | 0          | 31         | 13         |
+--------+------------------------------------------+------------+------------+------------+
| 5      | Data Science for Everyone                | 0          | 33         | 15         |
+--------+------------------------------------------+------------+------------+------------+
| 6      | Joining Data in SQL                      | 3          | 40         | 13         |
+--------+------------------------------------------+------------+------------+------------+
| 7      | Data Manipulation with pandas            | 4          | 41         | 15         |
+--------+------------------------------------------+------------+------------+------------+
| 8      | Supervised Learning with scikit-learn    | 7          | 37         | 17         |
+--------+------------------------------------------+------------+------------+------------+
| 9      | Machine Learning for Everyone            | 0          | 25         | 12         |
+--------+------------------------------------------+------------+------------+------------+
| 10     | Python Data Science Toolbox (Part 1)     | 1          | 34         | 12         |
+--------+------------------------------------------+------------+------------+------------+

Now, you can download any of the courses/tracks with:

datacamp download id1 id2 id3

For example to download the first and second course, run:

datacamp download 1 2
  • To download all your completed courses, run:
datacamp download all
  • To download all your completed tracks, run:
datacamp download all-t

This by default will download videos, slides, datasets, exercises, english subtitles and transcripts in organized folders in the current directory.

To customize this behavior see datacamp download command in the docs.

User Privacy

datacamp creates a session file with your credentials saved in the temp folder. If you no longer need to use the tool, it is preferable to reset the session, which will remove the saved file, with:

datacamp reset

Disclaimer

This CLI is provided to help you download Datacamp courses/tracks 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.

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

datacamp-downloader-3.2.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

datacamp_downloader-3.2-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file datacamp-downloader-3.2.tar.gz.

File metadata

  • Download URL: datacamp-downloader-3.2.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for datacamp-downloader-3.2.tar.gz
Algorithm Hash digest
SHA256 646f71c28608e1667495b52011013a086ab369940dc721511595135b37b017c3
MD5 0be7c0d1153788adfe5a5dafb001e015
BLAKE2b-256 19e8affaa86afcf7355b2a6a36f3a8e93c0f1b28cf5414c065965e1baf6c35f0

See more details on using hashes here.

File details

Details for the file datacamp_downloader-3.2-py3-none-any.whl.

File metadata

  • Download URL: datacamp_downloader-3.2-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for datacamp_downloader-3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6c71558629e869a6fb11b0eba24d0c3a25accf7393330f1b2f2b88cab842ad57
MD5 bf24c4e4388b008be3cd06336b4bfe1e
BLAKE2b-256 8cb65e9c8f4f0095e0863ddfa8674fcf250ebaa0a5b7739de0ced191f2bbbcac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page