Last active
March 29, 2017 12:11
-
-
Save HaveF/01000b508e1d1f4872c0add6a2b5afc3 to your computer and use it in GitHub Desktop.
雪球 关注的人组合水平 查询
This file contains hidden or 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
aList = $('.users-list>li>div.headpic>a'); | |
aList.toArray().map(node => { | |
fetch(`https://xueqiu.com/cubes/list.json?user_id=${node.getAttribute("data-id")}&_=${Date.now()}`, { | |
credentials: 'include' | |
}) | |
.then(res=>{ | |
return res.json() | |
}) | |
.then(res=>{ | |
let b = res.list.map(cube=>{ | |
return [cube.name, cube.net_value] | |
}); | |
console.log(node.getAttribute("data-name")); | |
console.table(b); | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment