All Projects → TimothyYe → bing-wallpaper

TimothyYe / bing-wallpaper

Licence: Apache-2.0 license
A RESTful API to fetch daily wallpaper from Bing.com

Programming Languages

go
31211 projects - #10 most used programming language
Dockerfile
14818 projects
Makefile
30231 projects

Projects that are alternatives of or similar to bing-wallpaper

Bing-Api
轻巧但辣鸡的 Bing 今日美图 API
Stars: ✭ 39 (-81.43%)
Mutual labels:  bing-wallpaper
BingWallpaper
A python script which automatically updates desktop wallpaper on a Linux machine from bing.com (image for the day)
Stars: ✭ 15 (-92.86%)
Mutual labels:  bing-wallpaper
Bing-wallpapers
Fetch the Bing wallpaper image of the day
Stars: ✭ 19 (-90.95%)
Mutual labels:  bing-wallpaper
freshpaper
This utility automatically sets the wallpaper of the day from various sources as your Desktop wallpaper.
Stars: ✭ 35 (-83.33%)
Mutual labels:  bing-wallpaper
Bing-wallpaper
js获取必应每日壁纸,兼容 PC && mobile
Stars: ✭ 14 (-93.33%)
Mutual labels:  bing-wallpaper
BingGallery
A simple crawler to get all Bing gallery pictures.
Stars: ✭ 29 (-86.19%)
Mutual labels:  bing-wallpaper
bing-wallpaper
Automatically change your desktop background to Bing's image of the day, every day.
Stars: ✭ 63 (-70%)
Mutual labels:  bing-wallpaper
myNewTabMod
修改myNewTab这个扩展,使其在火狐41上实现新标签页和扩展签名
Stars: ✭ 14 (-93.33%)
Mutual labels:  bing-wallpaper
myNewTabWE
myNewTabMod这个扩展的WebExtension版本,由于API限制部分功能无法实现
Stars: ✭ 14 (-93.33%)
Mutual labels:  bing-wallpaper

Bing Wallpaper API

A RESTful API to fetch daily wallpaper from Bing.com

Usage

API

Parameters

  • resolution The resolution of wallpaper image. 1920 is the default value, you can also use 1366 and 3840(4K resolution).
  • format The response format, can be json or image. If response format is set as image, you will be redirected to the wallpaper image directly.
  • index The index of wallpaper, starts from 0. By default, 0 means to get today's image, 1 means to get the image of yesterday, and so on. Or you can specify it as random to choose a random index between 0 and 7.
  • mkt The region parameter, the default value is zh-CN, you can also use en-US, ja-JP, en-AU, en-UK, de-DE, en-NZ, en-CA. You can also set it as random to choose the region randomly.

Example

  • Request
https://bing.biturl.top/?resolution=1920&format=json&index=0&mkt=zh-CN
  • Response
{
  "start_date": "20181118",
  "end_date": "20181119",
  "url": "https://www.bing.com/az/hprichbg/rb/NarrowsZion_ZH-CN9686302838_1920x1080.jpg",
  "copyright": "锡安国家公园内的维尔京河,美国犹他州 (© Justinreznick/Getty Images)",
  "copyright_link": "http://www.bing.com/search?q=%E9%94%A1%E5%AE%89%E5%9B%BD%E5%AE%B6%E5%85%AC%E5%9B%AD\\u0026form=hpcapt\\u0026mkt=zh-cn"
}

CSS background image

You can also use this API to set CSS background image:

background-image: url(https://bing.biturl.top/?resolution=1920&format=image&index=0&mkt=zh-CN);
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;

Demo

https://biturl.top

https://github.com/TimothyYe/biturl/blob/master/screenshots/1.jpg?raw=true

Run with docker

Get the latest version of docker image:

docker pull timothyye/bing:latest

Start the container with the image name & tag (YYYYMMDD or latest), for example:

docker run -d --name=bing-wallpaper --restart=always -p 9000:9000 timothyye/bing:latest

For development

Build it

git clone https://github.com/TimothyYe/bing-wallpaper.git
make build

Run it

bw/bw run
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].