This is a Deno
pratice project by Leon.D
Movie
- /movieLines - Return random movie lines for json type.
- /movieLinesList - Return movie lines cache list for json type.
Photo
-
/bing/daily - Return daily photo from Bing.
Params: (
w
: number,h
: number,type
: 'redirect' | 'json') -
/bing/list - Return recent half month Bing daily photo list for json type.
-
/unsplash/random - Return random photo from Unsplash.
Params: (
w
: number,h
: number,type
: 'redirect' | 'json',keyword
: string) -
/unsplash/list - Return Unsplash list from daily cache for json type.
-
/sina/random - Return random photo from sina (transfer).
HotList
- /hotList/zhihu - Return Zhihu hot list
- /hotList/weibo - Return Weibo hot list
- /hotList/juejin - Return Juejin hot list
Download Deno
Client, and add System Path.
deno run --allow-net main.ts
Then visit https://localhost:8888
This project just run in single file, so you can deploy it in Deno Deploy easily.