Skip to content

Instantly share code, notes, and snippets.

@mayneyao
Last active December 28, 2018 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayneyao/c4690ed730a95a14aeb949165c03948c to your computer and use it in GitHub Desktop.
Save mayneyao/c4690ed730a95a14aeb949165c03948c to your computer and use it in GitHub Desktop.
导出 网易云音乐 听歌排行前100到 Spotify
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
@mayneyao
Copy link
Author

mayneyao commented Dec 24, 2018

网易云音乐web版,访问 https://music.163.com/#/user/songs/rank?id=<个人用户ID>

控制台下执行上述指令,显示个人听歌TOP前100的歌曲。copy下来在 https://www.spotlistr.com/search/textbox 中导入即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment