wtf_wikipedia:一个非常承诺的*标记解析器

时间:2021-05-01 19:21:53
【文件属性】:
文件名称:wtf_wikipedia:一个非常承诺的*标记解析器
文件大小:3.09MB
文件格式:ZIP
更新时间:2021-05-01 19:21:53
wikipedia wikipedia-markup-parser JavaScript wtf_wikipedia 解析来自*的数据 npm install wtf_wikipedia ( 和 这是困难的。 我们。 const wtf = require ( 'wtf_wikipedia' ) wtf . fetch ( 'Toronto Raptors' ) . then ( ( doc ) => { let coach = doc . infobox ( ) . get ( 'coach' ) coach . text ( ) //'Nick Nurse' doc . sentences ( ) [ 0 ] . text ( ) //'The Toronto Raptors are a Canadian professional basketball team ...' } ) 。文本() 获得干净的纯文本: let str =

网友评论