- Notifications
You must be signed in to change notification settings - Fork0
samuelchanx/HKUST-Lecture-Video-Download
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Download the HKUST streaming lecture video by parsing and getting the ts url link, then download them individually.
There's a great open-source extension developed for Chrome, and it's working as of 20/12/2018. Feel free to use it for a quick solution:HLS-Downloader
- Log in UST CAS /UST canvas
- Go to the lecture video URL, such as
https://ptz141.ust.hk/rvcprotected/mp4:18FA_CIVL1160-L1_181022_45315.mp4/media_w1817981_6.ts?UId=XXXXXX&SessionId=XXXXXXXXXX
- Open the browser development console, in Chrome for example, by
cmd
+option
+j
- Copy and paste the code from
index.js
to Chrome console
The lecture video ts files will then download automatically, and will stop after all files are downloaded, usually 4xx ~ 5xx files for a lecture class.
If you don't want to store so many separate files, you could combine them into one.
Type the following commands in the terminal:
printf'%s\n'*.ts(n)> tslistwhileread line;do cat$line>> full.ts;done< tslist
👆 Might have even simplier ways to do it, feel free to let me know
Run the concat python script bypython3 concat.py
About
Downloading HKUST streaming lecture video made easy
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.