English-words-pronunciation-mp3-audio-download
English-words-pronunciation-mp3-audio-download copied to clipboard
prevent saving corrupted audio file, download with file ultimated.jso…
prevent saving corrupted audio file, download with file ultimated.json, download all list
- I had some mp3 file which contained some html report instead of Audio file so i check them in part 'download_mp3' before save them -this code is not efficient in speed! it needs experts to modify it
- For me ultimate.json was not work, i find out that 'download_mp3 has issue with array URL in this lookup table so i assign it one by one
- you can download all of address for each word. the file with same name will be named by adding number according to index of its URL
- you can stop download for one word after first valid audio by change above code as follow:
while ((i<len(url)) and (f==1)):
try:
f=0
download_mp3(word, url[i], self.dir_path)
i+=1
except:
f=1
i+=1
pls share me french or spanish Mp3 data if you can? I got English Mp3 already ( more than 100K files) Or I can exchange with you.