1.2.0 • Published 12 months ago
search-everything v1.2.0
search-everything
针对各论坛,百科,搜索引擎的搜索结果获取或内容摘要
Installing
npm i search-everything
Usage
const { search, page } = require('search-everything')
search.moegirl('萝莉').then(res => {
console.log(res)
})
search.baike('丁真').then(res => {
console.log(res)
})
search.zhihu('chatgpt').then(res => {
if(res.length > 0) {
//page用于解析页面摘要
return page.zhihu(res[0].link)
}
}).then(res => {
console.log(res)
})
支持的接口
- bing
- baike
- moegirl
- bilibili
- zhihu