Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Created March 13, 2020 03:28
Show Gist options
  • Save cirrusUK/9d1b2e5d077dfa5ce5e8fa90e540e29a to your computer and use it in GitHub Desktop.
Save cirrusUK/9d1b2e5d077dfa5ce5e8fa90e540e29a to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import urllib.request
url = input("Enter the Youtube-url\n")
name = input("Enter the name for the video\n")
name=name+".mp4"
try:
print("Downloading starts...\n")
urllib.request.urlretrieve(url, name)
print("Download completed..!!")
except Exception as e:
print(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment