Created
July 8, 2024 12:19
-
-
Save liuyuhe666/c944353f208610fe81ba6c6dcb64c941 to your computer and use it in GitHub Desktop.
💕 获取一张二次元图片
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "---- Fetch Image ----" | |
# 当前时间 | |
$t = Get-Date -Format "yyyy_MM_dd_HH_mm_ss" | |
# 二次元图片 API | |
$uri = "https://t.alcy.cc/pc/" | |
# 文件名 | |
$filename = $t + ".webp" | |
echo $filename | |
Invoke-WebRequest -Uri $uri -Outfile $filename | |
echo "---- Fetch Image ----" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment