Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 861 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 861 Bytes

YT-AV-Downloader

This technique makes use of yt-dlp.

Installation

git clone https://github.com/ongsici/YT-AV-Downloader.git conda create -n ytdownloader python=3.8 -y conda activate ytdownloader pip install -r requirements.txt

Data Format

Youtube URL, start and end times should be included in the TXT file in the following format:
(URL) (start time in hh:mm:ss) (end time in hh:mm:ss)
Example:
https://www.youtube.com/watch?v=I_HxaUlUMTQ&t=1931s 00:32:00 00:32:08 https://www.youtube.com/watch?v=I_HxaUlUMTQ&t=1931s 00:32:10 00:32:18

Usage

  1. Video Download:
    python youtube_download.py -i youtube_example.txt -o LawrenceWong -t video

  2. Audio Download:
    python youtube_download.py -i youtube_example.txt -o LawrenceWong -t audio