The Bing has updated a wall paper everyday and we can create a PHP script to crawl it automatically everyday, which can be set to crontab job daily.
// en-US, zh-CN, ja-JP, en-AU, en-UK, de-DE, en-NZ
$url = 'http://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=';
$resolution = '1920x1080';
// language options
$locale = array(
"en-US",
"zh-CN",
"ja-JP",
"en-AU",
"en-UK",
"de-DE",
"en-NZ"
);
// parameters
$today = date("Y-m-d");
$ip = "VPS Server";
foreach ($locale as $lang) {
$URL = $url . $lang;
$data = file_get_contents($URL);
$json = json_decode(trim($data), true);
if ($json) {
$images = $json['images'];
foreach ($images as $image) {
$urlbase = $image['urlbase'];
$image_url = 'http://www.bing.com' . $urlbase . '_' . $resolution . '.jpg';
$copyright = $image['copyright'];
// now you can save the picture at $image_url with the title $copyright
}
}
}
The API from Bing returns a JSON-encoded structure which contains the URL of the image and the copyright string which can be used to describe the wall paper. This has now been set up as a daily crontab job so you can find all Bing wall papers using Tag: BingEverydayWallpaperPicture.
Note that you can also use API to fetch, according to the API documents.
https://helloacm.com/api/pictures/search/?key=BingEverydayWallpaperPicture
How to Show a Random Bing Photo?
According to the API, you can use the following HTML code:
<img src='https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicture' style='max-width:50%'>
To obtain a random Bing Photo, like the following (you can press Ctrl + F5 to clear the browser image caches):
You can also use the following cached version (refreshed every 30 minutes):
https://uploadbeta.com/api/pictures/random/?cached&key=BingEverydayWallpaperPicture
–EOF (The Ultimate Computing & Technology Blog) —
473 wordsLast Post: How to Hide a File in JPEG under Linux Shell?
Next Post: How to Add Disqus if Comments are Closed in WordPress?

Too complicated bro, try this one.
https://github.com/greenandgreen/-PHP-Everyday-Bing-Wallpaper-API
good one, thanks.