/yt-dlp-Video-Downloader

A small Python script that is used to download the newest videos on any channel. It is ran automatically using CRON jobs in a Linux environment.

Primary LanguagePython

yt-dlp Video Downloader

A Python script that uses yt-dlp to download videos from YouTube.


 

Information

Program Information

  • Language: Python

  • Purpose or Functionality: The program is used to download the audio of specified YouTube channel videos. The audio files are then used as "audiobooks."

  • Host Operating Systems: Ubuntu LTS 22.04 • Windows 10/11


Features and Implementations

  • Download YouTube Videos: The program downloads YouTube videos from a specified video URL or channel URL.

  • Duplicate Prevention: The program checks whether or not a video has already been downloaded using a database with video IDs.

  • Audio Extraction: The program extracts the audio from the video.

  • Scheduled Program Execution: The Python script is ran automatically using CRON jobs inside a Linux host.


Future Features and Implementations

  • Add Additional Channels: A feature to download videos/audio/playlists from multiple channels.

  • Downloading to Specified Folder: A feature to specify the download location for video and audio files.


Packages & Tools Used

  • yt-dlp: Used to download videos from YouTube.

  • Requests: Used to download the HTML of a YouTube video or channel. The HTML is used to get a video's ID and title.

  • SQLite3: Used to store a video's ID and to prevent duplicates by storing them into a database.

  • ffmpeg: Used to handle video and audio files, such as audio extraction.