Last active
June 15, 2017 01:43
-
-
Save dcai/36824079de2859c8b9cc27246367b868 to your computer and use it in GitHub Desktop.
网易云音乐导出
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
// 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