bing圖片每日更新,對於這一點感覺挺不錯的,如果能夠把bing每日圖片作為博客背景是不是很不錯呢?首先我們進入Bing首頁,會發現自動轉到中國版。不過這沒關系,中國版更符合國情,速度也比國際版快一些。
下面分享bing圖片接口api,通過抓包,可以發現
http://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1
這里可以獲取到無水印的圖片。
抓包顯示結果:
{"images":[{"startdate":"20160613","fullstartdate":"201606131600","enddate":"20160614","url":"http://s.cn.bing.net/az/hprichbg/rb/BomboHeadland_ZH-CN9339065341_1920x1080.jpg","urlbase":"/az/hprichbg/rb/BomboHeadland_ZH-CN9339065341","copyright":"凱馬Bombo Headland,新南威爾士州,澳大利亞 (© Attakorn Bk/Getty Images)","copyrightlink":"http://www.bing.com/search?q=%E5%87%AF%E9%A9%AC&form=hpcapt&mkt=zh-cn","wp":true,"hsh":"8b50b348242b793c63102d33c2ca5eb7","drk":1,"top":1,"bot":1,"hs":[],"msg":[{"title":"今日圖片故事","link":"http://www.bing.com/search?q=%E5%87%AF%E9%A9%AC&FORM=pgbar1&mkt=zh-cn","text":"凱馬"}]}],"tooltips":{"loading":"正在加載...","previous":"上一個圖像","next":"下一個圖像","walle":"此圖片不能下載用作壁紙。","walls":"下載今日美圖。僅限用作桌面壁紙。"}}
我們從中提取圖片鏈接,url地址:
http://s.cn.bing.net/az/hprichbg/rb/BomboHeadland_ZH-CN9339065341_1920x1080.jpg
如果我們想瀏覽昨天,前天的圖片呢? 回到最初的網址上,http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1 在這里,更換 idx= 這個參數就可以了。 如 http://cn.bing.com/HPImageArchive.aspx?idx=1&n=1 將要得到昨天的圖片 http://cn.bing.com/HPImageArchive.aspx?idx=2&n=1得到前天的圖片
官網bing每日圖片api知道教程如下,如果想了解更多內容點擊進入——bing圖片api用法
1. 訪問 https://api.ioliu.cn/bing/ , 返回bing每日最新背景圖, 可選參數[w,h] 2. 訪問 https://api.ioliu.cn/bing/?d=n (n>=0), 返回以當日為起點第n天前的壁紙, 可選參數[w,h] 3. 訪問 https://api.ioliu.cn/bing/json/ , 返回bing每日最新壁紙的相關(介紹、圖片地址等)信息(json格式), 可選參數[callback]. 4. 訪問 https://api.ioliu.cn/bing/rand/ , 返回隨機圖片, 可選參數[w,h] 5. 訪問 https://api.ioliu.cn/bing/blur/ , 返回高斯模糊圖片, 可選參數[d,w,h] 帶[w,h]用法: https://api.ioliu.cn/bing/rand/?w=1920&h=1200 目前已知圖片分辨率 1920x1200 1920x1080 1366x768 1280x768 1024x768 800x600 800x480 768x1280 720x1280 640x480 480x800 400x240 320x240 240x320
原網址:http://www.eso360.cn/html/2408963950.html