xenv / gushici Goto Github PK
View Code? Open in Web Editor NEW一言·古诗词 API (Hitokoto API),随机返回一条古诗词名句。采用 Vert.x + Redis 全异步开发,毫秒级稳定响应。
Home Page: https://gushi.ci
License: GNU General Public License v3.0
一言·古诗词 API (Hitokoto API),随机返回一条古诗词名句。采用 Vert.x + Redis 全异步开发,毫秒级稳定响应。
Home Page: https://gushi.ci
License: GNU General Public License v3.0
很好用的诗词API,
但是在使用期间,偶遇有些句子的标点是错的,遇到的都是将原本的逗号标成句号了
今天遇到的则是乱码的样子,有些字显示成□□了,如:
"content":"夜沈沈、谁道□□,□系得人心。","popularity":792000,"origin":{"title":"江城子·腻红匀脸衬檀唇","dynasty":"宋代","author":"苏轼","content":["腻红匀脸衬檀唇。晚妆新。暗伤春。手捻花枝,谁会两眉颦。连理带头双□□,留待与、个中人。","淡烟笼月绣帘阴。画堂深。夜沈沈、谁道□□,□系得人心。一自绿窗偷见后,便憔悴、到如今。"],"translate":null},"matchTags":["晚上"],"recommendedReason"
chinese-poetry官网:http://shici.store/chinese-poetry/
github:https://github.com/chinese-poetry/chinese-poetry
我是在使用幾枝的時候發現的,由於 API 是隨機的,所以已經找不到原來的數據了。
應爲 “谁道□□,□系得人心”, 而非“谁道□□□,系得人心”。
支持关键词搜索吗?还是商业版本的支持?
竹外桃花三两枝,春江水暖鸭先知。
惠崇春江晚景二首 / 惠崇春江晓景二首」
苏轼
这样
升级后的是springboot项目吗,开源了吗,想学习一下。没有接触过vert.x,学的东西太多,精力不够用了
文档里给出的是 const jinrishici = require('jinrishici');
如果使用 import { jinrishici } from 'jinrishici'; 则会报错。
这里有两个坑,1个是目前没有ts的类型包,另外一个是包里导出的是 load 函数。
对于第一个问题,在项目根目录里创建 jinrishici.d.ts 文件,简单内容为 declare module 'jinrishici'; 并在 tsconfig.json 中的 "include":[],数组中添加 "jinrishici.d.ts", 如 "include": ["src","jinrishici.d.ts"] ,即可。
对于第二个问题,修改为 import { load } from 'jinrishici'; 就可以使用了。
今日诗词只能返回几个固定的诗句,无论api还是网页,在少数几个句子中反复随机
https://www.jinrishici.com/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.