OrhanOzkercin / vuemastery-dl

Vue Mastery Course Video List Downloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue Mastery dl

Caution: This script was made just for fun as a weekend project without intent to falsify videos or doing any illegal activities related to Vue Mastery videos. Use of downloaded videos is strictly prohibited. If you want to watch them, go to Vue Mastery official site!

Install

git clone git@github.com:serkanerip/vuemastery-dl.git
cd vuemastery-dl
npm install

Prepare Environment File

cp .env.example .env

Fill your email and password, and you can change settings like video quality and chunks. This are default values :

EMAIL=
PASSWORD=

VIDEO_QUALITY=720p
CHUNKS=10

Set which courses you want to download

In courses.js file push the course that you want to download in the array. There is also a bunch of course urls in file but commented you can easily uncomment and download those.

// Put courses you want in this array

module.exports = [
  "https://www.vuemastery.com/courses/vuex-fundamentals/vuex4-intro-to-vuex",
];

Get Course Video Lists And Complete Page

node index.js

To download both the videos and the complete pages.

Get Only Course Video Lists

node index.js video

For each course a json file will be created in course-video-lists directory which contains the urls for downloading the videos.

Get Only Complete Pages

node index.js complete

Html files will be downloaded into the downloads directory.

Download Videos

node scripts/download-from-json.js course-video-lists/example.json

There will be an extra file named all.json, which contains all download urls of courses. You can use this file to download all courses in one step but if downloading videos take too much time maybe remaining videos will be expired.

Videos will be downloaded into the downloads directory.

About

Vue Mastery Course Video List Downloader


Languages

Language:JavaScript 99.7%Language:Shell 0.3%