Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else:
- if os.path.isfile(i + ".mp3"):
- print i + " is exists. Skipped."
- r = urlopen(link)
- if r.headers['Content-Length'] == os.path.getize(fname):
- continue
- link = api_vk.audio.search(q=i, auto_complete=1, sort=2, count=1)[1]['url']
- downloaded_file = urllib.URLopener()
- downloaded_file.retrieve(link, i + '.mp3')
- sleep(3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement