Skip to content

用python尝试下载喜马拉雅免费的音频,并用tkinter界面

Notifications You must be signed in to change notification settings

yanght1001/ximalaya

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ximalaya

喜马拉雅免费专辑批量下载,此项目仅用于学习研究使用,其他的与本人无关。

启动

python3 main.py

python版本

本人使用版本python3.7,其他版本没测试过,估计也是可以的。

xm-sign生成算法

def xm_md5():
    url = 'https://www.ximalaya.com/revision/time'
    headrer = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36',
            'Host': 'www.ximalaya.com'}
    html = requests.get(url, headers = headrer)
    nowTime = str(round(time.time()*1000)) #13位时间戳
    sign = str(hashlib.md5("himalaya-{}".format(html.text).encode()).hexdigest()) + "({})".format(str(round(random.random()*100))) + html.text + "({})".format(str(round(random.random()*100))) + nowTime
    return sign

About

用python尝试下载喜马拉雅免费的音频,并用tkinter界面

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.7%
  • JavaScript 28.3%