command
module
Version:
v0.0.0-...-5b82d79
Opens a new window with list of versions in this module.
Published: Mar 15, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Bing
将 Bing 每日壁纸上传到七牛云。
动机
- Pipe 博客平台有个特性是随机为文章配图,所以需要一些漂亮的图片
- Bing 壁纸原始地址会过期,为了尽量保证图片的可访问性,所以下载原图后上传到七牛云
使用方式
- 命令行参数 -bucket, -ak, -sk
- 编译出可执行二进制后配置定时任务每天执行。定时任务最好每天执行 1 次以上,主要是为了降低出错概率
访问路径
上传七牛云的文件路径是 bing/yyyyMMdd.jpg
,客户端可以按此规则生成随机路径进行访问。
一些细节
鸣谢
- 微软 Bing 搜索以及各图片作者
- GoRequest:简单好用的 golang HTTP 客户端
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.