发现最近有人在拉取这个项目,所以简单的重写下代码,尚未完成。
qiangzi7723 / spider-for-netease-music Goto Github PK
View Code? Open in Web Editor NEW抓取网易云音乐上所有歌曲的评论数量,并整理数据打造一个前端展示页面
抓取网易云音乐上所有歌曲的评论数量,并整理数据打造一个前端展示页面
发现最近有人在拉取这个项目,所以简单的重写下代码,尚未完成。
这个肯定不能爬版权歌曲吧?除非写了会员登录的cookies?
写完按照分类来拼凑歌单似乎也不错?
运行显示歌手xxx抓取完毕,但是数据表却看不到歌曲的信息
网易云的页面由 前端 JS 控制路由动态加载,但可以找到页面源地址。
如 https://music.163.com/#/discover/artist/cat?id=1001&initial=65
源地址为 https://music.163.com/discover/artist/cat?id=1001&initial=65
直接请求源地址而不用无头浏览器可以提高爬取效率。希望之后的版本能改进。
不过还是挺棒的一个项目,加油
singer.js
里面的cbItem和cbObj的回调是怎么判断需要调取哪个,然后分别是什么
我看配置文件里面也没有写
`/home/alphabrock/file/spider-for-netease-music/spider/node_modules/mysql/lib/protocol/Parser.js:80
throw err; // Rethrow non-MySQL errors
^
TypeError: Cannot read property 'name' of undefined
at query (/home/alphabrock/file/spider-for-netease-music/spider/code/song.js:30:37)
at Query.conn.query [as _callback] (/home/alphabrock/file/spider-for-netease-music/spider/mysql/index.js:11:17)
at Query.Sequence.end (/home/alphabrock/file/spider-for-netease-music/spider/node_modules/mysql/lib/protocol/sequences/Sequence.js:88:24)
at Query._handleFinalResultPacket (/home/alphabrock/file/spider-for-netease-music/spider/node_modules/mysql/lib/protocol/sequences/Query.js:139:8)
at Query.EofPacket (/home/alphabrock/file/spider-for-netease-music/spider/node_modules/mysql/lib/protocol/sequences/Query.js:123:8)
at Protocol._parsePacket (/home/alphabrock/file/spider-for-netease-music/spider/node_modules/mysql/lib/protocol/Protocol.js:279:23)
at Parser.write (/home/alphabrock/file/spider-for-netease-music/spider/node_modules/mysql/lib/protocol/Parser.js:76:12)
at Protocol.write (/home/alphabrock/file/spider-for-netease-music/spider/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket. (/home/alphabrock/file/spider-for-netease-music/spider/node_modules/mysql/lib/Connection.js:103:28)
at emitOne (events.js:96:13)`
这是什么一个情况呢
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.