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 Tiktok Live Monitor | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description Monitor live status, invoke local record server if onair | |
// @author InJeCTrL | |
// @match https://www.douyin.com/user/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=douyin.com | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== |
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 openai | |
import threading | |
import time | |
from collections import OrderedDict | |
class OpenAIInvoker: | |
__unblock_time = 60 * 1000 | |
Completion = openai.Completion() |
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
from PIL import Image, ImageDraw | |
from io import BytesIO | |
import socket | |
import struct | |
import threading | |
import matplotlib.pyplot as plt | |
###################### | |
IP = "xxx" | |
PORT = 5555 |
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 | |
import json | |
import pymysql | |
# 310100 上海 | |
# 320100 南京 | |
# 330100 杭州 | |
# 440100 广州 | |
# 440300 深圳 |
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
from concurrent.futures import ProcessPoolExecutor | |
import requests | |
import pandas as pd | |
from androguard.misc import AnalyzeAPK | |
import os | |
import re | |
import base64 | |
maxCurrent = 12 |
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
class FunEnc: | |
def __init__(self): | |
# self.__zero = 'O' | |
# self.__one = '0' | |
# self.__sep = '1' | |
self.__one = '1' | |
self.__zero = '0' | |
self.__sep = ' ' | |
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
from selenium import webdriver | |
import time | |
url_course = "https://grsbupt.yuketang.cn/pro/lms/84eubUXLHEy/4842006/video/{0}" | |
ff = webdriver.Firefox() | |
ff.maximize_window() | |
time.sleep(10) | |
for i in range(7117140, 7117151, 1): | |
print(i) | |
ff.get(url_course.format(str(i))) |
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 pandas as pd | |
import os | |
import time | |
path_eastmoney = "./data_parsed/" | |
path_jointquant = "./data_jq/" | |
path_result = "./data_comb/" | |
list_eastmoney = os.listdir(path_eastmoney) |
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
// 在他人动态主页中使用 | |
var l = $(".single-button.c-pointer.p-rel"); | |
for(var i = 0; i < l.length; ++i){ | |
if(l[i].children[0].children[0].className != "custom-like-icon zan-hover"){ | |
l[i].click(); | |
} | |
} |
NewerOlder