Skip to content

Save WebEx videos uploaded by Politecnico di Milano.

License

Notifications You must be signed in to change notification settings

sup3rgiu/PoliWebex

Repository files navigation

PoliWebex

If you are not familiar with terminal, you can use this browser extension to download WebEx videos directly from the webpage: https://github.com/jacopo-j/WebXDownloader

If you need to download multiple videos at once and/or prefer a faster download through aria2c, go ahead with this project 😉

GUI Version: https://github.com/yuyu-19/PoliDL-GUI

Saves WebEx videos uploaded by Politecnico di Milano.

Features:

PREREQS

  • Node.js: above v14.0.
  • aria2: this needs to be in your $PATH (for example, copy aria2c.exe to c:\windows). PoliWebex calls aria2c with a bunch of arguments in order to improve the download speed.
  • ffmpeg: a recent version (year 2019 or above), in $PATH.

Windows Installation instructions

(On others OS is pretty much the same)
N.B: ffmpeg.zeranoe.com closed since Sep 18, 2020. If you are following the video tutorial, download ffmpeg from another source available on ffmpeg site (nightly build is no more required)

This tutorial comes from my other project PoliDown. The installation process is the same, just use clone this repo (and not PoliDown repo) and write "poliwebex" where in the video appear "polidown"

https://user-images.githubusercontent.com/7725068/76635047-21a89080-6547-11ea-8da9-31831ca7620a.png

USAGE

  • Clone this repo
  • cd into the cloned folder
  • npm install to install dependencies

COMMAND LINE USAGE

Default usage:

$ node poliwebex --videoUrls "https://politecnicomilano.webex.com/webappng/sites/politecnicomilano/recording/play/VIDEO-1"

$ node poliwebex -v "https://politecnicomilano.webex.com/webappng/sites/politecnicomilano/recording/play/VIDEO-1"

Show options:

$ node poliwebex -h

Options:
  --version                  Show version number                                      [boolean]
  -v, --videoUrls                                                                     [array]
  -f, --videoUrlsFile        Path to txt file containing the URLs (one URL per line)  [string]
  -p, --SPIDpassword                                                                  [string]
  -u, --SPIDusername                                                                  [string]
  -o, --outputDirectory                                                               [string] [default: "videos"]
  -e, --polimiEmail          In the format of [email protected]
  -k, --noKeyring            Do not use system keyring                                [boolean] [default: false]
  -t, --noToastNotification  Disable toast notification                               [boolean] [default: false]
  -i, --timeout              Scale timeout by a factor X                              [number]
  -w, --videoPwd             Default video password                                   [string] [default: ""]
  -h, --help                 Show help                                                [boolean]

Multiple videos download:

$ node poliwebex -v "https://politecnicomilano.webex.com/webappng/sites/politecnicomilano/recording/play/VIDEO-1" "https://politecnicomilano.webex.com/webappng/sites/politecnicomilano/recording/play/VIDEO-2"

Download from TXT file (one link each line):

$ node poliwebex -f "/my/path/here/links.txt"

Output directory (relative or absoulte path):

$ node poliwebex -v "https://politecnicomilano.webex.com/webappng/sites/politecnicomilano/recording/play/VIDEO-1" -o "/my/path/here"

Replace saved password

$ node poliwebex -p MYNEWPASSWORD -v "https://politecnicomilano.webex.com/webappng/sites/politecnicomilano/recording/play/VIDEO-1"

Download password-protected video (could also omit the argument and input it manually)

$ node poliwebex  -v "https://politecnicomilano.webex.com/webappng/sites/politecnicomilano/recording/play/VIDEO-1" -w PASSWORD

Scale timeout values by a factor X (integer or float value). Really useful for slow connections while performing login operations

$ node poliwebex  -v "https://politecnicomilano.webex.com/webappng/sites/politecnicomilano/recording/play/VIDEO-1" -i X

Do not use system keyring to save the password:

$ node poliwebex -v "https://politecnicomilano.webex.com/webappng/sites/politecnicomilano/recording/play/VIDEO-1" -k

You can omit the password argument. PoliWebex will ask for it interactively and then save it securely in system's keychain for the next use.

EXPECTED OUTPUT

Project powered by @sup3rgiu
Features: PoliMi Autologin - Multithreading download
Using aria2 version 1.35.0
Using ffmpeg version git-2020-03-06-cfd9a65 Copyright (c) 2000-2020 the FFmpeg developers

Video URLs: [
  'https://politecnicomilano.webex.com/webappng/sites/politecnicomilano/recording/play/b569e996f56740a3bc9bfd2637713779'
]
Output Directory: videos

Reusing password saved in system's keychain!

Launching headless Chrome to perform the OpenID Connect dance...
Navigating to WebEx login page...
Filling in Servizi Online login form...
We are logged in.
Got required authentication cookies.

At this point Chrome's job is done, shutting it down...

Video title is: Lesson number 1 - The cat is on the table

03/10 20:47:14 [NOTICE] Downloading 898 item(s)

[...]

Done!

The video is now saved under videos/, or whatever the outputDirectory argument points to.

About

Save WebEx videos uploaded by Politecnico di Milano.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •