Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Downloading HKUST streaming lecture video made easy

NotificationsYou must be signed in to change notification settings

samuelchanx/HKUST-Lecture-Video-Download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Download the HKUST streaming lecture video by parsing and getting the ts url link, then download them individually.

Alternative & easier way to Download Lecture Video

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

How to use

  1. Log in UST CAS /UST canvas
  2. Go to the lecture video URL, such ashttps://ptz141.ust.hk/rvcprotected/mp4:18FA_CIVL1160-L1_181022_45315.mp4/media_w1817981_6.ts?UId=XXXXXX&SessionId=XXXXXXXXXX
  3. Open the browser development console, in Chrome for example, bycmd +option +j
  4. Copy and paste the code fromindex.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.

How to combine the ts files

If you don't want to store so many separate files, you could combine them into one.

Mac / Linux

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

Python script

Run the concat python script bypython3 concat.py

About

Downloading HKUST streaming lecture video made easy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp