Bing get-get Bing Daily pictures

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.