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
async def post_pics(imgurl): | |
url = 'https://p.sda1.dev/api/v1/upload_external_noform' | |
async with aiohttp.ClientSession(headers=headers) as session: | |
async with session.get(imgurl) as response: | |
data = await response.read() | |
inttime = int(time.time()) | |
pic_suffix = imgurl.split(".")[-1] | |
params={'filename':str(inttime)+'.'+pic_suffix} | |
async with session.post(url,data=data,params=params) as response: | |
resp2 = await response.json() |
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 S1 User Marker | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Mark certain user | |
// @ogirin_author 冰箱研会长、masakahaha | |
// @author Nanachi | |
// @match https://bbs.saraba1st.com/2b/* | |
// @grant GM_getValue | |
// @grant GM_setValue |