Skip to content

Instantly share code, notes, and snippets.

@HaveF
Last active March 29, 2017 12:11
Show Gist options
  • Save HaveF/01000b508e1d1f4872c0add6a2b5afc3 to your computer and use it in GitHub Desktop.
Save HaveF/01000b508e1d1f4872c0add6a2b5afc3 to your computer and use it in GitHub Desktop.
雪球 关注的人组合水平 查询
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