All Projects → surmon-china → Wonderful Bing Wallpaper

surmon-china / Wonderful Bing Wallpaper

Licence: mit
Simple bing daily wallpaper API lib for Node.js. 极简的 Node.js 版必应壁纸 API 库。

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Wonderful Bing Wallpaper

gosimac
Fetch the wallpaper from Bing, Unsplash, etc.
Stars: ✭ 22 (+10%)
Mutual labels:  wallpaper, bing
bing-wallpaper
Python Skript that sets the daily www.bing.com picture as a Desktop Wallpaper
Stars: ✭ 21 (+5%)
Mutual labels:  wallpaper, bing
Bingpaper
Use Bing daily photo as your wallpaper for macOS.
Stars: ✭ 105 (+425%)
Mutual labels:  bing, wallpaper
freshpaper
This utility automatically sets the wallpaper of the day from various sources as your Desktop wallpaper.
Stars: ✭ 35 (+75%)
Mutual labels:  wallpaper, bing
Crow Translate
A simple and lightweight translator that allows to translate and speak text using Google, Yandex and Bing.
Stars: ✭ 503 (+2415%)
Mutual labels:  bing
Wallpapers
Collection of wallpapers for elementary OS
Stars: ✭ 317 (+1485%)
Mutual labels:  wallpaper
Translators
🌏🌍🌎Translators🌎🌍🌏 is a library which aims to bring free, multiple, enjoyable translation to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
Stars: ✭ 295 (+1375%)
Mutual labels:  bing
Splashify
Beautiful desktop wallpapers
Stars: ✭ 286 (+1330%)
Mutual labels:  wallpaper
Ps4 Wallpaper Helper
A helpful tool to change ps4 wallpaper
Stars: ✭ 11 (-45%)
Mutual labels:  wallpaper
Dynamic Wallpaper
A simple bash script to set wallpapers according to current time, using cron job scheduler.
Stars: ✭ 762 (+3710%)
Mutual labels:  wallpaper
Splash Cli
A simple, command line tool to download Unsplash wallpapers. It’s not intended to be anything particularly fancy — it just works.
Stars: ✭ 432 (+2060%)
Mutual labels:  wallpaper
Zvirtualdesktop
Windows 10 Virtual Desktop Hotkeys, System Tray Icon, Wallpapers, and Task View replacement
Stars: ✭ 322 (+1510%)
Mutual labels:  wallpaper
Search Deflector
A small program that forwards searches from Cortana to your preferred browser and search engine.
Stars: ✭ 620 (+3000%)
Mutual labels:  bing
Blear
iOS app that transforms your photos into stunning blurry wallpapers for your device
Stars: ✭ 311 (+1455%)
Mutual labels:  wallpaper
Earthlivesharp
live view of earth from space
Stars: ✭ 794 (+3870%)
Mutual labels:  wallpaper
Daily Reddit Wallpaper
Change your wallpaper to the most upvoted image of the day from /r/wallpapers or any other subreddit on system startup
Stars: ✭ 297 (+1385%)
Mutual labels:  wallpaper
Pacwall
A live wallpaper that shows the dependency graph and status of installed packages.
Stars: ✭ 412 (+1960%)
Mutual labels:  wallpaper
Wallpaper
Manage the desktop wallpaper
Stars: ✭ 763 (+3715%)
Mutual labels:  wallpaper
Geocoding.net
C# GeoCoding / Address Validation API
Stars: ✭ 377 (+1785%)
Mutual labels:  bing
Wallpaper
透明屏幕
Stars: ✭ 348 (+1640%)
Mutual labels:  wallpaper

wonderful-bing-wallpaper

GitHub stars npm GitHub issues GitHub last commit license

NPM

🌅 Simple bing daily wallpaper API lib for Node.js. 极简的 Node.js 版必应壁纸 API 库。

  • 简单:1 个接口
  • 稳定:与 Bing 同在
  • 轻巧:不依赖任何第三方

Credit

stackoverflow - Is there a way to get Bing's photo of the day?

Example

Usage

npm i wonderful-bing-wallpaper --save
const WonderfulBingWallpaper = require('wonderful-bing-wallpaper')

// get support resolutions list
const resolutions = WonderfulBingWallpaper.getResolutions()

// instance
const wbw = new WonderfulBingWallpaper({ /* options */ })

// update default options
wbw.setOptions({ /* options */ })

// get daily wallpapers
wbw.getWallpapers({ /* params */ }).then(wallpaperJSON => {
  console.log('got wallpaperJSON data', wallpaperJSON)
  console.log('got humanizeWallpapers data - Array', wbw.humanizeWallpapers(wallpaperJSON))
  console.log('got humanizeWallpapers data - Object', wbw.humanizeWallpapers(wallpaperJSON[0]))
})

API

new WonderfulBingWallpaper(options?: object): instance

wbw.setOptions(options?: object)

@return WonderfulBingWallpaper instance

recommended option field(推荐设置的字段)

params type required default desc
size Number false 1 how many images - 几张图片 size <= 8
day Number false 0 how days before - 往前推几天 day <= 7
format String false js result data format - 返回数据的格式 js/xml/rss
local String false en-US your location - 你想拿到什么语言的版本(国内 zh-CN

not recommended option field(非必要情况不要设置的字段)

params type required default desc
ensearch number false 0 0 / 1
1 则查询全量数据,包括如图片描述、故事、封面文字...开启后会被强制切换为全英文(实际 bing 拿的美版数据)
host String false www.bing.com bing wallpaper api host
你想在哪个服务器拿数据(国内 cn.bing.com
wallpaperApi String false /HPImageArchive.aspx bing wallpaper api path
如果哪天 Bing 改接口了你可以手动设置一下
resolution String false 1920x1200 humanizeWallpapers second param default resolution
使用 humanizeWallpapers 方法时第二参数的默认值

wbw.getWallpapers(params?: object): array

@return wallpaper array

the same as option fields.


wbw.humanizeWallpapers(wallPapers: object | array, resolution?: string): object | array

@return humanized wallpaper data.

{
  ...wallpaper,
  humanizedCopyrightUrl: string,
  humanizedSearchUrl: string,
  humanizedImageUrl: string,
  humanizedResolutionUrl: string
}
params type required default desc
wallPapers Array/Object true null wallpaper images
图片或多张图片
resolution String false {instance}.options.resolution wallpaper resolution
要输出的图片地址里的分辨率

Dev

yarn
yarn dev
yarn lint
yarn test
yarn build
npm run test

License

MIT

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