Skip to content

Instantly share code, notes, and snippets.

@MayankFawkes
Created October 1, 2019 16:41
Show Gist options
  • Save MayankFawkes/b6088d1381cbfc8d66bf0231995e737d to your computer and use it in GitHub Desktop.
Save MayankFawkes/b6088d1381cbfc8d66bf0231995e737d to your computer and use it in GitHub Desktop.
download things with small script
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