Created
November 29, 2022 03:39
-
-
Save vishalbandre/cf13a06424f9248cbd771a67f66d7862 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download YouTube video | |
import subprocess | |
def download_youtube_video(url, output_file): | |
cmd = 'youtube-dl ' + url + ' -o ' + output_file | |
subprocess.call(cmd, shell=True) | |
download_youtube_video('https://www.youtube.com/watch?v=srVPLrmlBJY', 'output.mp4') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment