lyroge / python-douban.music.download Goto Github PK
View Code? Open in Web Editor NEW输入音乐小站地址,下载所有歌曲
输入音乐小站地址,下载所有歌曲
豆瓣音乐小站MP3下载器 原理: 对豆瓣音乐小站页面html分析出所有mp3(正则匹配)文件url,然后用urllib.urlretrieve中方法直接将文件下载到本地。 多线程 通过多线程技术下载(继承threading.Thread的方法创建) updates: 2012/11/16 17:03 1.该脚本可以接受小站地址参数,执行如:python main.py http://site.douban.com/******/ 2.为请求头加入了user-agent、cookie, 否则的话豆瓣返回403 2012/11/15 16:19 1.修改了保存的文件名为unicode字符 self.name.decode('utf8') 2.对正则表达中应用了非捕获分组 3.去掉了一些无用的包 problems: 1.怎样自动检测字符串原始编码,而不是自己去一个个试?
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.