2022-11-08
百度贴吧App接口

百度贴吧移动端app接口分为:

首页

大家都在搜

热搜榜 热吧榜 游戏榜(手游 端游 主机)

关注 推荐

热榜 (贴吧话题榜,热帖榜(总榜,视频,长更,游戏,数码)

直播 (我的关注,排行榜,讨论区,个人中心,我要直播,推荐,颜值)

视频

进吧

关注的吧 吧广场 最近逛的吧

频道

游戏 数码 娱乐 影视 动漫 体育 小说 同城

消息

@我的 点赞 回复 粉丝

我的

关注 粉丝 吧

我的帖子 大神认证 创作学院 热门活动

我的收藏 浏览历史 直播 话题(贴吧话题榜)

Read More

2022-10-25
B站根据视频内容自动生成推荐的标签

B站允许最多10个标签

不能发布太频繁, B站官方限制30秒一稿

some upload api

this api does not analyze the video content. it only predict tags from metadata:

https://member.bilibili.com/x/web/archive/tags

how to get upload_id

只有PC网页端有这个 手机端没有 可能是新功能

b站最新更新了这两个接口 需要传入upload_id 具体参数抓包获取

分区推荐 POST:

https://member.bilibili.com/x/vupre/web/archive/types/predict

标签推荐 GET(可能有延迟 需要请求两次 因为第一次标签数量较少):

https://member.bilibili.com/x/vupre/web/tag/recommend

获取活动标签:

https://member.bilibili.com/x/vupre/web/topic/type?type_id=21&pn=0&ps=200&title=20210210_298667075925_waou_5s&t=1667530591393

Read More

2022-09-25
涩图Api Setu Bot

notice

涩图可以发到qq群里面活跃气氛 可以发到专栏里面 可以添加到视频里面“截图选老婆”

涩图分为二次元和三次元涩图 皆要控制尺度

除了涩图之外,能够随时使用的番剧clip也是很重要的 如何获取“动漫名场面”呢

projects

https://github.com/opq-osc/OPQ-SetuBot 直接搜索的pixiv

二次元涩图api

https://api.lolicon.app/#/setu 注意不要r18的 要用nsfw检查一下至少

三次元涩图api

Read More

2022-09-11
Random Giphy Gifs

gif ratings

official doc

vulgar rate:

r > pg-13 > pg > g

while ‘y’ means accepting all shits, not ‘youth’ nor ‘young’

implementation

giphy has many extensible apis. i guess most media platforms are all the same (complex enough), but we have to start somewhere though…

giphy has ‘clips’ now. clips are gifs with sound, just like short videos.

beta key limitations:

1000 requests per day, 42 requests per hour

or just use the public beta key? does that subject to the rate limit?

this public beta key is trashed.

1
2
var PUBLIC_BETA_API_KEY = 'dc6zaTOxFJmzC';

is this public api key? maybe it is both api and sdk key.

Gc7131jiJuvI7IdN0HZ1D7nh0ow5BU6g

api keys:

IoJVsWoxDPKBr6gOcCgOPWAB25773hqP

lTRWAEGHjB1AkfO0sk2XTdujaPB5aH7X

sdk keys:

6esYBEm9OG3wAifbBFZ2mA0Ml6Ic0rvy

sXpGFDGZs0Dv1mmNFvYaGUvYwKX0PWIh

to use api:

https://github.com/austinkelleher/giphy-api

to use sdk:

https://github.com/Giphy/giphy-js/blob/master/packages/fetch-api/README.md

find public api keys inside html:

1
2
3
4
5
6
7
8
9
window.GIPHY_FE_MOBILE_API_KEY = "L8eXbxrbPETZxlvgXN9kIEzQ55Df04v0"
window.GIPHY_FE_WEB_API_KEY = "Gc7131jiJuvI7IdN0HZ1D7nh0ow5BU6g"
window.GIPHY_FE_FOUR_O_FOUR_API_KEY = "MRwXFtxAnaHo3EUMrSefHWmI0eYz5aGe"
window.GIPHY_FE_STORIES_AND_GIPHY_TV_API_KEY = "3eFQvabDx69SMoOemSPiYfh9FY0nzO9x"
window.GIPHY_FE_DEFAULT_API_SERVICE_KEY = "5nt3fDeGakBKzV6lHtRM1zmEBAs6dsIc"
window.GIPHY_FE_GET_POST_HEADERS_KEY = "e0771ed7b244ec9c942bea646ad08e6bf514f51a"
window.GIPHY_FE_MEDIUM_BLOG_API_KEY = "i3dev0tcpgvcuaocfmdslony2q9er7tvfndxcszm"
window.GIPHY_FE_EMBED_KEY = "eDs1NYmCVgdHvI1x0nitWd5ClhDWMpRE"

search for ‘ear flops’ to locate the tags in ‘samoyed.html’

Read More

2022-07-16
Github Gitee 大文件大型Repo如何上传

using github/gitee apis with watchdog.

exclude xonsh yaml(.yml) files

if you decide to upload the thing to github privately, and to sync among devices, then you need to deploy and share your ssh key.

run git related command after opened the vscode repeatedly, just like notable.

before git submodule .git folder deletion you may record the remote origin url to somewhere in the base folder.

you could patch the vscode launcher somehow, read the working directory to determine to repeatedly sync or not.

git init is a manual process.

also you might need five filelocks: one for main loop process running, one for git sync, one for local sync, two for remote sync.

use $@ or $* will do to pass arguments to the vscode binary.

首先不能follow symlink

其次忽略二进制文件 忽略特定后缀以外的文件

第一次建立的时候 递归扫描所有文件 去除大文件 append到.gitignore根目录下面

下一次 git add .之前 利用git的功能寻找有变化的文件目录 把大文件目录append到.gitignore里面

Read More