PHPackages                             iflow/scrapy - 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. iflow/scrapy

ActiveLibrary

iflow/scrapy
============

v0.0.1(1y ago)0251MulanPSL-2.0PHPPHP &gt;=8.0.0

Since Jul 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/luotianyil/iflow_scrapy)[ Packagist](https://packagist.org/packages/iflow/scrapy)[ RSS](/packages/iflow-scrapy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

一个简单的爬虫
=======

[](#一个简单的爬虫)

安装
--

[](#安装)

```
composer require iflow/scrapy
```

使用
--

[](#使用)

```
use iflow\Scrapy\implement\Query\Client\Proxy;
use iflow\Scrapy\implement\Query\Queue;
use iflow\Scrapy\implement\Request\Request;
use iflow\Scrapy\implement\Response\Response;
use iflow\Scrapy\Scrapy;

$request = new Request(
    'https://baidu.com',
    'GET',
    cookie: [
        [
            'Name' => 'Name',
            'Value' => 'Value',
            'Domain'   => '.baidu.com',
            'Path'     => '/',
            'HttpOnly' => true
        ]
    ]
);

$queue = new Queue();

for ($i = 0; $i < 0; $i++) {
    $queue -> add($request, function (Response $response) {
        var_dump($response -> getResponseBodyType() -> getParserContent());
    });
}

// 如果不使用代理可以注释
$proxy = new Proxy();
// $proxy -> addProxy('183.195.106.118', 8118);

// 执行请求
(new Scrapy($queue, $proxy, options: [ 'cookies' => true ])) -> request();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

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

Unknown

Total

1

Last Release

660d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d25b62271bcaef304dce7dcb02951de015980b87e5129f440b8d11758d4e86b?d=identicon)[洛水天依](/maintainers/%E6%B4%9B%E6%B0%B4%E5%A4%A9%E4%BE%9D)

---

Top Contributors

[![luotianyil](https://avatars.githubusercontent.com/u/43297170?v=4)](https://github.com/luotianyil "luotianyil (7 commits)")[![luotianyiovo](https://avatars.githubusercontent.com/u/22890200?v=4)](https://github.com/luotianyiovo "luotianyiovo (2 commits)")

### Embed Badge

![Health badge](/badges/iflow-scrapy/health.svg)

```
[![Health](https://phpackages.com/badges/iflow-scrapy/health.svg)](https://phpackages.com/packages/iflow-scrapy)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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