Is there any .mp3 on that terrible "illegal" site that work
Back to Python,this is how you download.

Back to Python,this is how you download.
import requests url = 'http://file-examples.com/wp-content/uploads/2017/11/file_example_MP3_700KB.mp3' with open('sample.mp3', 'wb') as f: f.write(requests.get(url).content)Get file name from url.
import requests import os url = 'http://file-examples.com/wp-content/uploads/2017/11/file_example_MP3_700KB.mp3' file_name = os.path.basename(url) with open(file_name, 'wb') as f: f.write(requests.get(url).content)