Bing Gallery Data
# idx = Number days previous the present day.
# 0 means today, 1 means yesterday
# n = Number of images previous the day given by idx (max 8 immagini)
# mkt = Bing Market Area
POWERSHELL SCRIPT
$xml = Invoke-WebRequest "https://www.bing.com/HPImageArchive.aspx?format=xml&idx=0&n=10&mkt=it-IT"
$doc = [xml]$xml
$doc.images.image | % {
$url = "https://www.bing.com" + $_.url
$filename = $_.urlBase.Replace("/th?id=OHR.", "") + ".jpg"
$description = $_.copyright
Invoke-WebRequest $url -OutFile $filename
[System.IO.File]::AppendAllText("$(pwd)/image-details.txt", $filename + " -- " + $description + [Environment]::NewLine)
}