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
prevent saving corrupted audio file, download with file ultimated.json, download all list