Skip to content

Instantly share code, notes, and snippets.

Avatar

bitjjj bitjjj

View GitHub Profile
@bitjjj
bitjjj / js
Last active Jan 25, 2019
豆瓣查小组内人员发帖记录(解决人员可以随意改名的问题)
View js
var groupId = '10658', targetUid = '174827503', page = 0, totalPage = 50;
function queryUid() {
$.get('https://www.douban.com/group/' + groupId + '/discussion?start=' + page, function(data){
$(data).find('.olt tbody tr:not(.th)').each(function(){
var $title = $(this).find('td a').eq(0),
uidStr = $(this).find('td a').eq(1).attr('href'),
uid = uidStr.slice(uidStr.lastIndexOf('people/')+7, -1);
//console.log(uid,targetUid,uid===targetUid);
if (uid === targetUid){
console.log($title.html(), $title.attr('href'));
You can’t perform that action at this time.