PHPackages                             rauwang/paging-steal - 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. rauwang/paging-steal

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

rauwang/paging-steal
====================

遍历分页爬取，记录爬取断点，断点续爬

018PHP

Since Dec 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/rauwang/paging-steal)[ Packagist](https://packagist.org/packages/rauwang/paging-steal)[ RSS](/packages/rauwang-paging-steal/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

简单地封装一个断点续爬的小插件，只需要继承3个抽象类和实现一个接口就可以了。

抽象类是对三个数据模型的操作进行抽象；接口是对分页操作的方法进行抽象。

### 抽象类

[](#抽象类)

- StealTarget: 记录分页的信息；
- StealBreakpoint：记录断点的信息；
- StealDataPage：记录已爬节点的信息；

### 接口

[](#接口)

- PagingSteal：具体的分页操作接口；

### 实现抽象类和接口

[](#实现抽象类和接口)

- `TestStealTarget`实现`StealTarget`抽象类：

```
use Rauwang\PagingSteal\Driver\Repositories\StealTarget;

class TestStealTarget extends StealTarget {
	// ...
}
```

- `TestStealDataPage`实现`StealDataPage`抽象类：

```
use Rauwang\PagingSteal\Driver\Repositories\StealDataPage;

class TestStealDataPage extends StealDataPage {
    // ...
}
```

- `TestStealBreakpoint`实现`StealBreakpoint`抽象类：

```
use Rauwang\PagingSteal\Driver\Repositories\StealBreakpoint;

class TestStealBreakpoint extends StealBreakpoint {
    // ...
}
```

- `PagingStealDemo1`实现`PagingSteal`接口：

```
use Rauwang\PagingSteal\Driver\PagingSteal;

class PagingStealDemo1 implements PagingSteal {
    // ...
}
```

### 配置

[](#配置)

```
\Rauwang\PagingSteal\PagingSteal::init(
	TestStealTarget::class,
    TestStealBreakpoint::class,
    TestStealDataPage::class,
);
```

### 调用

[](#调用)

```
\Rauwang\PagingSteal\PagingSteal::build(PagingStealDemo1::class)->steal();
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ba81f6ceda16f5848e16a56c469e0916733778712430d320617cd48d5801ab1?d=identicon)[rauwang](/maintainers/rauwang)

---

Top Contributors

[![rauwang](https://avatars.githubusercontent.com/u/11934944?v=4)](https://github.com/rauwang "rauwang (19 commits)")

### Embed Badge

![Health badge](/badges/rauwang-paging-steal/health.svg)

```
[![Health](https://phpackages.com/badges/rauwang-paging-steal/health.svg)](https://phpackages.com/packages/rauwang-paging-steal)
```

###  Alternatives

[humanmade/hm-redirects

Simple plugin for handling WordPress redirects in a scalable manner.

29229.9k2](/packages/humanmade-hm-redirects)

PHPackages © 2026

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