Skip to content

Instantly share code, notes, and snippets.

@Kush1101
Created October 19, 2020 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kush1101/ab093c9c38209373d46badd07716fdb8 to your computer and use it in GitHub Desktop.
Save Kush1101/ab093c9c38209373d46badd07716fdb8 to your computer and use it in GitHub Desktop.
# Script to download any video from youtube (without advanced optional paramters)
import youtube_dl
link = 'link_to_youtube_video'
try:
with youtube_dl.YoutubeDL() as ydl:
ydl.download(link)
print('Video downloaded successfully')
except:
print('Some error occoured')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment