保存每日 bing 美图到本地文件夹

warning: 这篇文章距离上次修改已过1550天,其中的内容可能已经有所变动。

GitHub repo

bingwallpapers

saving daily bingwallpaper to your disk

Usage

in Linux or macOS:

java -jar /path/to/app.jar --saveFolder=/mnt/yourdisk/images

in Windows cmd and powershell:

java -jar /path/to/app.jar --saveFolder=d:\images

in Windows Git Bash:

java -jar /path/to/app.jar --saveFolder=/d/images

use your own saveFolder please.

the output file name is like this: 2021-09-13.jpg


the jar file is only 454KB, you can run it as a crontab job for saving daily bingwallpaper to your local disk.

just type crontab -e then, add following line into the end of screen:

0 12 * * * /usr/bin/java -jar /path/to/app.jar --saveFolder=/mnt/yourdisk/images

This means saving pictures to the images folder at 12 noon every day.

最后修改于:2021年09月17日 14:10

添加新评论