Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #If You Like This Share It Through Facebook and Twitter
- #Examples
- #URL To Media:http://sport-wallpaper.com/wallpaper/elektric-hd-desktop-theme.jpg
- #Name:Wallpaper.jpg
- #Connect Me FaceBook: www.facebook.com/ajithkp560
- #Twitter: www.twitter.com/ajithkp560
- import urllib
- print "MediaFile Saver"
- print "\n\n\t|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
- print "\t||||| |||||"
- print "\t||||| |||||"
- print "\t||||| Coded By Ajith KP:::Coded By Ajith KP |||||"
- print "\t||||| |||||"
- print "\t||||| [email protected] [email protected] |||||"
- print "\t|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
- try:
- url = raw_input("URL To Media:")
- url =url.replace("http://","")
- print "Give Name For Save. Eg. Music.mp3, Video.flv, etc."
- filesave = raw_input("Name:")
- print ("Saving "+filesave+".....")
- download = urllib.urlopen('http://'+url).read()
- save = open(filesave, 'wb')
- save.write(download)
- save.close()
- print ("Saving "+filesave+" Complete.....")
- except Exception as wrong:
- print ("Sorry, Saving "+filesave+" Not Completed")
- except (KeyboardInterrupt, SystemExit):
- print "\t[x] Session cancelled"
Add Comment
Please, Sign In to add comment