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
!function(){var t={9662:function(t,e,n){var r=n(614),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},9483:function(t,e,n){var r=n(4411),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(614),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),i=n(3070).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:function(t,e,n){var r=n(7976),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,n){var r=n(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},8533:function(t,e,n){"use strict |
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
// 在黑名单管理页面( https://www.douban.com/contacts/blacklist ),打开浏览器的 dev tools。在 console 中输入以下代码,回车 | |
let list = [] | |
let start_num = 0 | |
$('.obss.namel dl').each((i, ele) => { | |
const target = $(ele).find('.gact-item .gact a') | |
const username = $(ele).find('dd a').attr('href').split('/')[4] | |
const nickname = $(ele).find('dd').text() | |
const url = target.attr('href') | |
list.push({ | |
username, |
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
// ==UserScript== | |
// @name 显示豆瓣小组id | |
// @namespace http://han.im | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author J.Y Han | |
// @match https://www.douban.com/group/* | |
// @grant showDoubanGroupId | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name 显示豆瓣小组id | |
// @namespace http://han.im | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author J.Y Han | |
// @match https://www.douban.com/group/* | |
// @grant showDoubanGroupId | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name 获取网易云音乐、虾米专辑页面的曲目列表和封面大图 | |
// @namespace getTrackListAndCoverFromMusicPlatform | |
// @version 0.2 | |
// @lastest 2020-01-02 | |
// @description try to take over the world! | |
// @author J.Y Han | |
// @match https://www.xiami.com/album/* | |
// @match https://music.163.com/* | |
// @grant none |
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
// ==UserScript== | |
// @name Douban-Profile-Plus | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description 显示豆瓣用户id|性别 | |
// @author J.Y Han | |
// @match https://www.douban.com/people/* | |
// ==/UserScript== | |
/* globals $ */ |
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
// 在豆瓣小组成员管理页面,打开浏览器的 dev tools。在 console 中输入以下代码,回车 | |
let list = [] | |
let start_num = 0 | |
$('.member-list-mod li.member-item').each((i, ele) => { | |
const target = $(ele).find('.u_actions .gact').eq(1).find('a') | |
const username = $(ele).find('.avatar a').attr('href').split('/')[4] | |
const nickname = $(ele).find('.avatar img').attr('alt') | |
const url = target.attr('href') | |
list.push({ | |
username, |
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
/** | |
* promise style request | |
*/ | |
import { decryptData, isNeedDecrypto } from './dec-data' | |
function createDefaultConfig () { | |
return { | |
url: '', | |
method: 'GET', | |
data: null, |
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
# -*- coding: utf-8 -*- | |
import requests | |
import json | |
from config import doubanurl | |
from util import doubanutil, tools | |
from verifycode import wordrecognition | |
def post_new_topic(group_url, topic_dict): |
NewerOlder