fyl00 / exportxiamilist Goto Github PK
View Code? Open in Web Editor NEW导出虾米歌单
导出虾米歌单
原因:267行计算页数使用勾选歌曲数除以每页歌曲数。这里没有考虑到由于版权问题下架的歌曲是不会勾选的,于是这样计算出来的页数可能会少。
解决:get_u_song方法其实已经可以判断是否该停止获取了(根据该页是否还有歌曲),所以get_list方法272、273行开始的循环不用以判断页数,直接从2开始往上循环,get_u_song返回false就停止循环,可以了。
PS:我是用的在线版本,发现问题才来看代码的。自己的老本子上就懒得搭环境跑了,对git也不熟……
如题,比如这样的,导入时会报错
<File> <FileName>小林未郁 - βίος<MK+nZk Version>.mp3 </FileName> </File>
希望给全部歌曲加上CDDATA,导出成这样就ok了
<File> <FileName><![CDATA[小林未郁 - βίος<MK+nZk Version>.mp3]]></FileName> </File>
现在直接访问歌曲列表链接返回的是404了,研究了下需要先访问主页再去访问才行(就是为了那些cookie),我没研究怎么用requests搞,自己用curl搞了个项目,偷了点代码,囧
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.