Skip to content

Instantly share code, notes, and snippets.

@dcai
Last active June 15, 2017 01:43
Show Gist options
  • Save dcai/36824079de2859c8b9cc27246367b868 to your computer and use it in GitHub Desktop.
Save dcai/36824079de2859c8b9cc27246367b868 to your computer and use it in GitHub Desktop.
网易云音乐导出
// remember load jquery first
// https://gist.github.com/dcai/1a4675d26be0d4ccd12382ce07965157
var songs = jQuery('span.txt>a>b').map((index, value) => value.innerText);
var artists = jQuery('div.text>span[title]').map((index, value) => value.innerText);
var albums = jQuery('div.text>a').map((index, value) => value.innerText);
var results = songs.map((index, value) => ({
title: value,
artist: artists[index],
album: albums[index]
}));
results.each((index, song) => console.info(`${song.title}/${song.artist}/${song.album}`));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment