All Projects → KuangPF → Bing-wallpaper

KuangPF / Bing-wallpaper

Licence: MIT license
js获取必应每日壁纸,兼容 PC && mobile

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to Bing-wallpaper

BingGallery
A simple crawler to get all Bing gallery pictures.
Stars: ✭ 29 (+107.14%)
Mutual labels:  bing-wallpaper
awesome-programming-tutorials
📚 Collect all awesome programming tutorials
Stars: ✭ 39 (+178.57%)
Mutual labels:  javscript
bing-wallpaper
Automatically change your desktop background to Bing's image of the day, every day.
Stars: ✭ 63 (+350%)
Mutual labels:  bing-wallpaper
naturaljs
Add natural language programming capabilities to javascript
Stars: ✭ 79 (+464.29%)
Mutual labels:  javscript
myNewTabMod
修改myNewTab这个扩展,使其在火狐41上实现新标签页和扩展签名
Stars: ✭ 14 (+0%)
Mutual labels:  bing-wallpaper
myNewTabWE
myNewTabMod这个扩展的WebExtension版本,由于API限制部分功能无法实现
Stars: ✭ 14 (+0%)
Mutual labels:  bing-wallpaper
Self-Paced-Coding-Curriculum
Full-stack self-paced coding curriculum I created to teach myself and others how to code.
Stars: ✭ 12 (-14.29%)
Mutual labels:  javscript
bing-wallpaper
A RESTful API to fetch daily wallpaper from Bing.com
Stars: ✭ 210 (+1400%)
Mutual labels:  bing-wallpaper
react-dice-complete
Complete dice rolling functionality and animations
Stars: ✭ 60 (+328.57%)
Mutual labels:  javscript
urbit
Connects to a running Urbit ship via JavaScript
Stars: ✭ 17 (+21.43%)
Mutual labels:  javscript
Bing-Api
轻巧但辣鸡的 Bing 今日美图 API
Stars: ✭ 39 (+178.57%)
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 (+7.14%)
Mutual labels:  bing-wallpaper
Bing-wallpapers
Fetch the Bing wallpaper image of the day
Stars: ✭ 19 (+35.71%)
Mutual labels:  bing-wallpaper
freshpaper
This utility automatically sets the wallpaper of the day from various sources as your Desktop wallpaper.
Stars: ✭ 35 (+150%)
Mutual labels:  bing-wallpaper
leaflet heatmap
简单的可视化湖州通话数据 假设数据量很大,没法用浏览器直接绘制热力图,把绘制热力图这一步骤放到线下计算分析。使用Apache Spark并行计算数据之后,再使用Apache Spark绘制热力图,然后用leafletjs加载OpenStreetMap图层和热力图图层,以达到良好的交互效果。现在使用Apache Spark实现绘制,可能是Apache Spark不擅长这方面的计算或者是我没有设计好算法,并行计算的速度比不上单机计算。Apache Spark绘制热力图和计算代码在这 https://github.com/yuanzhaokang/ParallelizeHeatmap.git .
Stars: ✭ 13 (-7.14%)
Mutual labels:  javscript
portfolio
My personal portfolio and resume page.
Stars: ✭ 18 (+28.57%)
Mutual labels:  javscript
room-sprawl
If you're trying to get out there and contribute to some open source projects but feel a bit intimidated about getting your very first PR, this project might be for you
Stars: ✭ 24 (+71.43%)
Mutual labels:  javscript
Dracker
An iOS and React App to track debt and send/receive payments.
Stars: ✭ 22 (+57.14%)
Mutual labels:  javscript
tts dataset maker
A gui to help make a text to speech dataset.
Stars: ✭ 20 (+42.86%)
Mutual labels:  javscript

bing-wallpaper

PRs Welcome

安装依赖

npm install

运行

npm run dev

# 浏览器查看:http://localhost:8080/#/

效果

image

api

https://bing.com/HPImageArchive.aspx?format=js&idx=0&n=1

参数:

  • idx:表示请求的天数序列,0代表今天、1代表昨天…以此类推(只支持最近7天)
  • n:表示请求的天数数量(请求几天的图片);1为当天一天、2为昨天和今天

数据返回

{
  "images": [{
    "startdate": "20171207",
    "fullstartdate": "201712071600",
    "enddate": "20171208",
    "url": "/az/hprichbg/rb/SibeliusMonument_ZH-CN8903164725_1920x1080.jpg",
    "urlbase": "/az/hprichbg/rb/SibeliusMonument_ZH-CN8903164725",
    "copyright": "西贝柳斯纪念碑,芬兰赫尔辛基 (© Ville Heino/500px)",
    "copyrightlink": "http://www.bing.com/search?q=%E8%A5%BF%E8%B4%9D%E6%9F%B3%E6%96%AF%E7%BA%AA%E5%BF%B5%E7%A2%91&form=hpcapt&mkt=zh-cn",
    "quiz": "/search?q=Bing+homepage+quiz&filters=WQOskey:%22HPQuiz_20171207_SibeliusMonument%22&FORM=HPQUIZ",
    "wp": false,
    "hsh": "c9a7071a8f5438b9987213fc0696d972",
    "drk": 1,
    "top": 1,
    "bot": 1,
    "hs": []
  }],
  "tooltips": {
    "loading": "正在加载...",
    "previous": "上一个图像",
    "next": "下一个图像",
    "walle": "此图片不能下载用作壁纸。",
    "walls": "下载今日美图。仅限用作桌面壁纸。"
  }
}

数据处理

返回结果中 img 字段的 url 为图片地址一部分,完整的图片地址需加上必应的域名:https://www.bing.com, 以上面请求为例,最终图片地址为:

https://www.bing.com/az/hprichbg/rb/SibeliusMonument_ZH-CN8903164725_1920x1080.jpg

获取不同分辨率的壁纸,只需将 url 中对应的分辨率替换即可,支持的分辨率从如下:

['1920x1080', '1280x768', '1366x768', '1024x768', '800x600', '800x480', '720x1280', '640x480', '480x800', '400x240', '320x240', '240x320']

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].