Last December, I wrote a Bing fun wallpaper, which was to get pictures of the Bing home page and save it on your local computer.
In fact, the program exists a huge bug, access to the source of the problem caused only a date to get pictures.
A new way to get the source code is developed today in the Bing homepage:
1. This is the URL we will use:
Http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1
2, access to Web source
3. Extract <url>/az/hprichbg/rb/shastastars_zh-cn8155999354_1366x768.jpg </url><urlBase> content
4, make the URL combination http://cn.bing.com/az/hprichbg/rb/ShastaStars_ZH-CN8155999354_1366x768.jpg so we get the URL of the picture
The downloaded image is Bing's daily picture
If we want to browse yesterday, the pictures of the day before today?
Back to the original web site, Http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1 here, change idx= this parameter can be.
As Http://cn.bing.com/HPImageArchive.aspx?idx=1&n=1 will get yesterday's picture
Http://cn.bing.com/HPImageArchive.aspx?idx=2&n=1 get pictures of the day before yesterday
Learn about getting rules, so today you'll upgrade your Bing wallpapers to Bing capture .
Bing gets more than just a simple interface to upgrade, more support to view the last 20 days of pictures, at any time to set the picture as wallpaper.
All viewed images are saved in the D:\MayuSoft\BingWallpaper folder, and are named according to the date of the image.
In the settings you can make some simple settings
Download Bing get:
Bing get
Also, provide the PHP version of the Get rule:
<?php $str =file_get_contents (' http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1 '); if (Preg_match ("/<url> (. +?) <\/url>/ies ", $str, $matches)) { $imgurl = ' http://cn.bing.com '. $matches [1]; } if ($imgurl) { header (' content-type:image/jpeg '); @ob_end_clean (); @readfile ($imgurl); @flush (); @ob_flush (); Exit (); } else{ exit (' Error '); }? >
Login mayuko.cn to see the effect.
@ Mayuko
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Bing get-get Bing Daily pictures