pythonはrequestsを利用してファイルをダウンロードします
299 ワード
responseMp3 = requests.get(url)
if responseMp3.status_code == 200:
with open("%s.mp3" % name, "wb") as code:
code.write(responseMp3.content)
print(" ")
else:
print('aidUrl , : %d' % responseMp3.status_code)