Last active
December 28, 2018 09:51
-
-
Save mayneyao/c4690ed730a95a14aeb949165c03948c to your computer and use it in GitHub Desktop.
导出 网易云音乐 听歌排行前100到 Spotify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let allSongsDiv = document.querySelectorAll('div.song > div.tt > div > span'); | |
let songList = []; | |
allSongsDiv.forEach(item=>songList.push(item.innerText)); | |
let clearSongList = songList.map(item=>{ | |
let [name,artist] = item.split(" -"); | |
return `${name} - ${artist}` | |
}) | |
let text = clearSongList.join('\n'); | |
text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
网易云音乐web版,访问 https://music.163.com/#/user/songs/rank?id=<个人用户ID>
控制台下执行上述指令,显示个人听歌TOP前100的歌曲。copy下来在 https://www.spotlistr.com/search/textbox 中导入即可