Package: datacamp-downloader
Datacamp DownloaderTable of ContentsDatacamp DownloaderTable of ContentsDescriptionInstallationPIPFrom sourceAutocompletionDocumentationGetting StartedLoginDownloadUser PrivacyDisclaimerUpdateDatacamp Downloader V3.2 is now available. The major change is that the tool now uses selenium for the backend. See changelog for version3.0,3.1and3.2.DescriptionDatacamp Downloader is a command-line interface tool developed in Python
in order to help you download your completed contents onDatacampand 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 byudacimakDatacampers!If you find this CLI helpful, please support the developers by starring this repository.InstallationPIPIf you use pip, you can install datacamp-downloader with:pip install datacamp-downloaderFrom sourceYou can directly clone this repo and install the tool with:pip install git+https://github.com/TRoboto/datacamp-downloader.gitAutocompletionTo allow command autocompletion with[TAB][TAB], run:datacamp --install-autocompletionThen restart the terminal.Note:autocompletion might not be supported by all operating systems.DocumentationThe available commands with full documentation can be found indocsGetting StartedLoginTo login using your username or password, run:datacamp login -u [USERNAME] -p [PASSWORD]or simply run:datacamp loginTo login using Datacamp authentication token, run:datacamp set-token [TOKEN]Datacamp authentication token can be found in Datacamp website browsercookies.
To get your Datacamp authentication, follow these steps:FirefoxVisitdatacamp.comand log in.Open theDeveloper Tools(pressCmd + Opt + Jon MacOS orF12on Windows).Go toStorage tab, thenCookies>https://www.datacamp.comFind_dctkey, itsValueis the Datacamp authentication token.ChromeVisitdatacamp.comand log in.Open theDeveloper Tools(pressCmd + Opt + Jon MacOS orF12on Windows).Go toApplication tab, thenStorage>Cookies>https://www.datacamp.comFind_dctkey, itsValueis the Datacamp authentication token.Security NoteDatacamp 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 foundActive subscription is not required anymore.DownloadFirst, you should list your completed courses/track.To list your completedcourses, run:datacamp coursesTo list your completedtracks, run:datacamp tracksSimilar 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 id3For example to download the first and second course, run:datacamp download 1 2To download all your completed courses, run:datacamp download allTo download all your completed tracks, run:datacamp download all-tThis by default will downloadvideos,slides,datasets,exercises,english subtitlesandtranscriptsin organized folders in thecurrent directory.To customize this behavior seedatacamp downloadcommand in thedocs.User Privacydatacampcreates 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 resetDisclaimerThis CLI is provided to help you download Datacamp courses/tracks for personal use only. Sharing the content of the courses is strictly prohibited underDatacamp'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.