admin管理员组

文章数量:1577825

QueryList使用jQuery的方式来做采集,拥有丰富的插件。

下面来演示QueryList使用Baidu搜索引擎插件轻松实现站内搜索。

安装

使用Composer安装:

  • 安装QueryList
composer require jaeger/querylist

GitHub: https://github/jae-jae/QueryList

  • 安装Baidu搜索引擎插件
composer require jaeger/querylist-rule-baidu

GitHub: https://github/jae-jae/QueryList-PhantomJS

插件API

  • Baidu baidu($pageNumber = 10):获取百度搜索引擎

class Baidu:
- Baidu search($keyword):设置搜索关键词
- Baidu setHttpOpt(array $httpOpt = []):设置HTTP选项,查看: GuzzleHttp options
- int getCount():获取搜索结果总条数
- int getCountPage():获取搜索结果总页数
- Collection page(

本文标签: 轻松搜索引擎百度网资源PHP