close

download_mp3.py
>>
###################################################
# Download mp3 file from the url using Python 3.6
###################################################
import datetime
from urllib.request import urlretrieve

today = datetime.datetime.now().strftime("%Y%m%d")
url = 'http://www.changelife.org.tw/data/files/morning_bible_study/%s.mp3' %today
filename="%s.mp3" %today
response = urlretrieve(url,filename)



download_mp3.bat
>>
python download_mp3.py

 

 

arrow
arrow
    文章標籤
    Python Python 3.6
    全站熱搜
    創作者介紹
    創作者 DanBrother 的頭像
    DanBrother

    DanBrother的部落格

    DanBrother 發表在 痞客邦 留言(0) 人氣()