Created
October 1, 2019 16:41
-
-
Save MayankFawkes/b6088d1381cbfc8d66bf0231995e737d to your computer and use it in GitHub Desktop.
download things with small script
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
import urllib.request | |
''' | |
url="https://pro.sabsongs.com/k7fh57dj648jd/bollywood/Raabta%20-%20Ik%20Vaari%20Aa.mp3" | |
name="kk" | |
''' | |
url=input("Enter Url ~$") | |
name=input("File Name ~$") | |
url1=url.split(".") | |
len=len(url1) | |
len=int(len) | |
sur=(url1[len-1:len]) | |
for n in sur: | |
name=name+"."+n | |
urllib.request.urlretrieve(url, name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment