部署平台 | 链接 |
---|---|
Vercel | https://randomwanli.vercel.app/ |
Zeabur | https://randomwanli.zeabur.app/ |
<img src="https://randomwanli.zeabur.app/?returns=307">

link | 备注 |
---|---|
/ | 随机获取一张图片(默认返回json,可307跳转) |
/favicon.ico | - |
/getwanli/{filename} | 获取图片 |
参数
参数 | 可填写内容 | 备注 |
---|---|---|
returns | 307/- | 返回方式,默认返回json文本 |
type | jpg/png/gif | 获取图片类型,只能选一个 |
- | - | 所有参数均可选,可无需填写 |
参数 | 填写内容 | 备注 |
---|---|---|
filename | - | 文件名 |
type | jpg/png/gif | 获取图片类型,只能选一个 |
- | - | 所有参数必须填写,否则抛一张404图片 |
~$ git clone https://github.com/luyanci/randomWanli
~$ cd randomWanli
~/randomWanli$ pip install -r requirements.txt
~/randomWanli$ uvicorn main:app --host 0.0.0.0 --reload
- 使用模板:Zeabur FastAPI Template
- 作者:@MichaelYuhe
- 404/500图片:SAWARATSUKI/KawaiiLogos