Skip to content

Python script to download videos from CloudAcademy for personal offline use.

License

Notifications You must be signed in to change notification settings

dexter101010/cloudacademy-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudAcademy Downloader

This python script was built to download videos and subtitles from cloudacademy.com only for personal offline purpose and self-study.

Disclaimer

This tool is meant to be used only if your CloudAcademy account supports lecture downloads.

Installation instructions

This script requires Python 3 and a CloudAcademy account. Tested on Linux, Mac and Windows platform.
First clone this repository in any directory and then run the requirements.txt

$ git clone https://github.com/P4ntruka/cloudacademy-dl.git
Cloning into 'cloudacademy-dl'...

$ cd cloudacademy-dl
$ pip install -r requirements.txt

Usage Instructions

cloud-academy-dl.py <url course> --cookie=file.txt 

The URL must be the full qualifier from the course, when you see all video list in the left side of the video player.
Windows platform user: URL must be in double quotes
Linux/Mac platform user: URL must be in single or double quotes

The --cookie argument must be a text file with your cookies, for that, you must loggin on cloud academy and then make right click to inspect the website. In the Network tab mark the XHR option and look for a request with 'config' name in the left side of requests, select all request header, copy and save it into a text file.

cookie example

Mandatory: The Request Header must have the 'authorization' and 'cookie' fields in your text file:

"You only need generate the request header file once then can be used multiple time to download until your session expired from server."

:authority: cloudacademy.com
:method: GET
:path: /api/v3/reports/categories/course/
:scheme: https
accept: application/json
accept-encoding: gzip, deflate, br
accept-language: *
authorization: Bearer eyJ..........
cookie: _gcl_au=123abc....
referer: https://cloudacademy.com/
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36

Optional arguments

The optional command line arguments for the script are:

--help              Prints out the list of command line arguments.
--res=<resolution>  The required video resolution. Allowed values are 360,
                    720, and 1080. The default value for this argument is
                    1080.
--out=<output_dir>  The directory where the videos are saved. If this command
                    line argument is not specified, then they will be saved in
                    current directory under courses/.

Downloading videos & new features

If error appear while download, you can run again the script to check your downloaded files and if they're not corrupted.
If any file is corrupted, the script will start downloading again from that point.

corrupted_file

Icons only available on Mac(oh-my-zsh)

About

Python script to download videos from CloudAcademy for personal offline use.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages