Okay, why im creating this ? I recently wanted to use our well known youtube-dl but there is a catch for some reason i had some troubles with vimeo. So i went on the research and found this YT-DLP. This is an fork of an youtube-dl with a lot’s of features and as far for now it’s fancy there are a colors even inside the command line tool.

More of the project:
Github: https://github.com/yt-dlp/yt-dlp
Release: https://github.com/yt-dlp/yt-dlp#release-files
Documentation: https://github.com/yt-dlp/yt-dlp#readme

And here also how to use it inside the python file so you could automate whatever you want.
1. download lib …. pip install yt-dlp
2. Take a look below at the code shipset.

Tinkering with yt-dlp in python

import yt_dlp

# If you delete outtmpl parameter video will get default file name
# You can pass more option parameters to ydl_opts

# To change path to file name 'C://folder/' + filename +'.mp4'
# Othervise file will be saved in folder where you execute script.

def download(file_name,link):
    ydl_opts = {'ignoreerrors': True, 'outtmpl': file_name}
    with yt_dlp.YoutubeDL(ydl_opts) as ydl:
        error_code = ydl.download(link)

download('video.mp4', "http://videolink")