Created
February 14, 2020 06:15
-
-
Save Hootrix/4744bb4fb118564aa6612529079c7827 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
// 方法: | |
// 登录微信网页:https://wx.qq.com/ | |
// 打开指定组 -> 点击下拉箭头展示所有成员列表 -> 打开浏览器console控制台执行下面代码: | |
var list = [] | |
$('.member.ng-scope').each(function(){ | |
var title = $(this).attr('title'); | |
title = title.replace(/<img.*?\/>/g,'').trim() | |
list.push(title) | |
}); | |
console.log(list.join('\n')) | |
// list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment