mirror of
https://github.com/woodchen-ink/Random-Api.git
synced 2025-07-18 22:12:03 +08:00
# with '#' will be ignored, and an empty message aborts the commit. # # On branch main # # Initial commit # # Changes to be committed: # new file: README.md # new file: index.html # new file: index.md # new file: url.json # new file: url/pic/all.csv # new file: url/pic/fjht.csv # new file: url/pic/whitebackground.csv # new file: url/video/all.csv # new file: "worker 302\350\267\263\350\275\254.js" # new file: "worker \344\270\215\350\267\263\350\275\254.js" #
46 lines
1.7 KiB
Markdown
46 lines
1.7 KiB
Markdown
# Random-Api 随机文件API
|
||
|
||
github地址: [https://github.com/woodchen-ink/Random-Api](https://github.com/woodchen-ink/Random-Api)
|
||
|
||
|
||
> 我的博客说明:[https://woodchen.ink/archives/1705367469203](https://woodchen.ink/archives/1705367469203)
|
||
|
||
使用cloudflare worker配合github网页发布功能,实现获取path与csv_path关系,从 `url.csv` 文件中给出的链接来实现一个随机文件
|
||
|
||
不仅可以放图片,还能放文本文件,视频,等等
|
||
|
||
## 接口
|
||
|
||
| 类型 | 种类 | 请求地址 |
|
||
| ---- | ---------- | ---------------- |
|
||
| 图片 | 所有 | [https://random-api.woodchen.ink/pic/all](https://random-api.woodchen.ink/pic/all) |
|
||
| 图片 | 白底 | [https://random-api.woodchen.ink/pic/whitebackground](https://random-api.woodchen.ink/pic/whitebackground) |
|
||
| 图片 | 风景横图 | [https://random-api.woodchen.ink/pic/fjht](https://random-api.woodchen.ink/pic/fjht) |
|
||
| 视频 | 所有 | [https://random-api.woodchen.ink/video/all](https://random-api.woodchen.ink/video/all) |
|
||
|
||
|
||
## 感谢
|
||
|
||
大部分图片来自网络分享的API
|
||
|
||
以下不分先后:
|
||
|
||
* https://t.mwm.moe/
|
||
|
||
## 自行部署
|
||
|
||
1. cloudflare 新建一个worker,把 worker.js文件的代码粘贴进去,保存(可以修改为自己的链接)
|
||
2. 访问即可
|
||
|
||
## 赞赏
|
||
|
||
如果对这个项目对你有帮助,欢迎打赏,支持微信和支付宝,请留言和备注项目,我会在我的博客上写出,感谢。
|
||
|
||
### 微信
|
||
|
||

|
||
|
||
### 支付宝
|
||
|
||

|