1. 首页
  2. 数据库
  3. 其它
  4. oembed parser:从给定的网页中提取oEmbed数据 源码

oembed parser:从给定的网页中提取oEmbed数据 源码

上传者: 2021-04-04 18:46:58上传 ZIP文件 34.7KB 热度 13次
解析器 从给定的URL中提取嵌入的内容。 重要的提示: 演示版 安装 npm install oembed-parser 用法 import { extract , } from 'oembed-parser' ; const url = 'https://www.youtube.com/watch?v=8jPQjjsBbIc' ; extract ( url ) . then ( ( oembed ) => { console . log ( oembed ) ; } ) . catch ( ( err ) => { console . trace ( err ) ; } ) ; 蜜蜂 .extract(字符串url [,对象参数]) 从指定的网址提取嵌入的数据。 回报:一个承诺 可选参数params是带有它的对象,我们可以设置用于缩放嵌入大小以适合您的容器大小的maxwi
下载地址
用户评论