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
const DELAY_TIME = 1000 | |
async function getRepost(page) { | |
let res = await fetch(`https://m.weibo.cn/api/statuses/repostTimeline?id=4211254174873514&page=${page}`) | |
let obj = await res.json() | |
if (obj.ok !== 1) { | |
return false | |
} | |
return obj.data.data | |
} | |
async function getComment(page) { |
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
// ==UserScript== | |
// @name Stream Test | |
// @namespace http://imspace.cn/gms | |
// @match *://*/* | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== | |
function getBodyChecker () { | |
let c = 0; | |
let ret = function (buffer) { |
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
package | |
{ | |
import flash.display.MovieClip; | |
import TryCatchTest.MyError | |
import TryCatchTest.MyError2 | |
import flash.system.ApplicationDomain | |
import flash.system.SecurityDomain | |
import flash.system.LoaderContext | |
import flash.net.URLRequest | |
import flash.display.Loader; |
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
import requests | |
import time | |
from hashlib import md5 | |
def demo(roomId): | |
tt = int(time.time()) | |
signContent = 'lapi/live/thirdPart/getPlay/%d?aid=pcclient&rate=0&time=%d9TUk5fjjUjg9qIMH3sdnh' % (roomId, tt) | |
sign = md5(signContent).hexdigest() | |
url = 'http://coapi.douyucdn.cn/lapi/live/thirdPart/getPlay/%d?rate=0' % roomId | |
NewerOlder