针对各论坛,百科,搜索引擎的搜索结果获取或内容摘要
npm i search-everything
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