Skip to content

Instantly share code, notes, and snippets.

View TomoeMami's full-sized avatar
📚
Keep learning...

TomoeMami

📚
Keep learning...
View GitHub Profile
@TomoeMami
TomoeMami / post_pics.py
Created January 5, 2023 16:11
post_sda_dev_pic
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()
@TomoeMami
TomoeMami / S1UserMarker.js
Created January 27, 2022 11:12
S1用户标记脚本
// ==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