fix the parsing

This commit is contained in:
2024-11-18 21:13:04 +00:00
parent 4369d8b6b0
commit 44877c0b5f
+1 -1
View File
@@ -11,7 +11,7 @@ PWD=$(dirname $(readlink -f $0))
# here are some other ways of downloading wallpaper
#get random photo
url=$(curl https://api.unsplash.com/photos/random\?client_id\=sqNEPALHnwDAScQe7uA-l_1HDYH_XCHgCg3xLha47fA\&count\=1\&query\="tree,stars,nature,sea,weather"| jq -r '.urls.raw')
url=$(curl https://api.unsplash.com/photos/random\?client_id\=sqNEPALHnwDAScQe7uA-l_1HDYH_XCHgCg3xLha47fA\&count\=1\&query\="tree,stars,nature,sea,weather"| jq -r '.[].urls.full')
#download the file
wget -O $PWD/wallpaper.jpg $url