Created
March 13, 2020 03:28
-
-
Save cirrusUK/9d1b2e5d077dfa5ce5e8fa90e540e29a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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