A project of practicing hands. I want to climb the singer information on NetEase Cloud
code is similar to
const request = require("superagent");
const cheerio = require("cheerio");
request
.get("http://music.163.com/-sharp/discover/artist/cat")
.accept("text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8")
.query({
id: 1001,
initial: 65
})
but the data crawled to is a string template:
<li class="j-item" data-userId=${user.userId} data-username=${user.nickname} data-index=${user_index}><a href="-sharp"><img src=${user.avatarUrl}>${user.nickname}</a></li>
what should be done? Thank you ~