PHPackages                             jaeger/querylist-rule-baidu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jaeger/querylist-rule-baidu

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

jaeger/querylist-rule-baidu
===========================

QueryList Plugin: Baidu searcher. QueryList百度搜索插件

4.0.2(5y ago)162.5k11[1 issues](https://github.com/jae-jae/QueryList-Rule-Baidu/issues)3MITPHPPHP &gt;=7.0

Since Oct 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jae-jae/QueryList-Rule-Baidu)[ Packagist](https://packagist.org/packages/jaeger/querylist-rule-baidu)[ RSS](/packages/jaeger-querylist-rule-baidu/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (3)

QueryList-Rule-Baidu
====================

[](#querylist-rule-baidu)

QueryList Plugin: Baidu searcher.

QueryList插件：百度搜索引擎

> QueryList:

Installation for QueryList4
---------------------------

[](#installation-for-querylist4)

```
composer require jaeger/querylist-rule-baidu

```

API
---

[](#api)

- Baidu **baidu($pageNumber = 10)**:get Baidu Searcher.

class **Baidu**:

- Baidu **search($keyword)**:set search keyword.
- Baidu **setHttpOpt(array $httpOpt = \[\])**：Set the http option,see: [GuzzleHttp options](http://docs.guzzlephp.org/en/stable/request-options.html)
- int **getCount()**:Get the total number of search results.
- int **getCountPage()**:Get the total number of pages.
- Collection **page($page = 1,$realURL = false)**:Get search results

Usage
-----

[](#usage)

- Installation Plugin

```
use QL\QueryList;
use QL\Ext\Baidu;

$ql = QueryList::getInstance();
$ql->use(Baidu::class);
//or Custom function name
$ql->use(Baidu::class,'baidu');
```

- Example-1

```
$baidu = $ql->baidu(10)
$searcher = $baidu->search('QueryList');
$count = $searcher->getCount();
$data = $searcher->page(1);
$data = $searcher->page(2);

$searcher = $baidu->search('php');
$countPage = $searcher->getCountPage();
for ($page = 1; $page page($page);
}
```

- Example-2

```
$searcher = $ql->baidu()->search('QueryList');
$data = $searcher->setHttpOpt([
    // Set the http proxy
    'proxy' => 'http://222.141.11.17:8118',
   // Set the timeout time in seconds
    'timeout' => 30,
])->page(1);
```

- Example-3

```
$baidu = $ql->baidu(3)
$searcher = $baidu->search('QueryList');

$data = $searcher->page(1);
print_r($data->all());

// Get real url
$data = $searcher->page(1,true);
print_r($data->all());
```

Out:

```
Array
(
    [0] => Array
        (
            [title] => QueryList|基于phpQuery的无比强大的PHP采集工具
            [link] => http://www.baidu.com/link?url=qRAXrUIcrxuLQ4Pn_rL25HvpDwugxgLkmwB74wTBuLflWaDTNY1d27gdxMwddbfn
        )
    [1] => Array
        (
            [title] => 介绍- QueryList指导文档
            [link] => http://www.baidu.com/link?url=NgoB517LCcb7tt37_x74uF0N-8pfhSemhA5qoB0SHf8HY9P_MwKbN80nf9zvd3V5
        )
    [2] => Array
        (
            [title] => PHP 用QueryList抓取网页内容 - wb145230 - 博客园
            [link] => http://www.baidu.com/link?url=kDkpY9eZ6CsiT1SWomRWEYPauHseHn2FseSdPnsOoulWCkD3DK6QMT75urFGHLyeG_M9yTD0BCm-s5jGQRi_S_
        )

)

Array
(
    [0] => Array
        (
            [title] => QueryList|基于phpQuery的无比强大的PHP采集工具
            [link] => http://www.querylist.cc/
        )
    [1] => Array
        (
            [title] => 介绍- QueryList指导文档
            [link] => http://doc.querylist.cc/
        )
    [2] => Array
        (
            [title] => PHP 用QueryList抓取网页内容 - wb145230 - 博客园
            [link] => http://www.cnblogs.com/wb145230/p/4716403.html
        )
)

```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~547 days

Total

3

Last Release

2105d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/167618?v=4)[Jae](/maintainers/jae)[@Jae](https://github.com/Jae)

---

Top Contributors

[![jae-jae](https://avatars.githubusercontent.com/u/5620429?v=4)](https://github.com/jae-jae "jae-jae (6 commits)")[![huangjie-dd](https://avatars.githubusercontent.com/u/69784661?v=4)](https://github.com/huangjie-dd "huangjie-dd (1 commits)")

### Embed Badge

![Health badge](/badges/jaeger-querylist-rule-baidu/health.svg)

```
[![Health](https://phpackages.com/badges/jaeger-querylist-rule-baidu/health.svg)](https://phpackages.com/packages/jaeger-querylist-rule-baidu)
```

###  Alternatives

[phpro/soap-client

A general purpose SoapClient library

8896.1M54](/packages/phpro-soap-client)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6758.1M79](/packages/jbroadway-urlify)[bingher/ding-bot

dingding bot plugin

3417.5k1](/packages/bingher-ding-bot)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
