Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.15 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.15 KB

PanoptoDownloader

Download video from Panopto!

Prerequisites

Install

Run the command:

pip install git+https://github.com/Panopto-Video-DL/Panopto-Video-DL-lib#egg=PanoptoDownloader

FFmpeg

Since version 1.4.0 FFmpeg is no longer needed, but it is highly recommended.
It is possible that some videos will not download properly without FFmpeg.

Usage

Run the command:

panoptodownloader URL [-o OUTPUT]

Use as Python Module

import PanoptoDownloader


URL = "https://****"
PATH = "./output.mp4"


def callback(progress: int):
    """
    :param progress: Downloading progress. From 0 to 100
    """
    print(f"{progress} / 100")


if __name__ == '__main__':
    try:
        PanoptoDownloader.download(
            URL,
            PATH,
            callback
        )
        print("Download completed")

    except Exception as e:
        print(e)