Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

ayugespidertools

Latest version: v3.19.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: ayuge
103 Stars
17 Forks
2 Versions
761 Downloads
Python Repo language

Scan summary

ayugespidertools was last scanned on 29 Nov 2026 at version 3.19.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 3.19.0.
  • Downloads: 761 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.19.0 LATEST 29 Nov 2026 No rules fired
3.18.0 1 Nov 2026 No rules fired

No rules fired in 3.19.0

Findings

Findings for v3.19.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.19.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

|logo|

.. |logo| image:: https://raw.githubusercontent.com/shengchenyang/AyugeSpiderTools/master/artwork/ayugespidertools-logo.svg :target: https://ayugespidertools.readthedocs.io/en/latest/ :alt: ayugespidertools-logo :width: 480px

|version| |license| |python_support| |docs| |downloads| |codecov|

.. |version| image:: https://img.shields.io/pypi/v/ayugespidertools :target: https://pypi.org/pypi/ayugespidertools :alt: PyPI Version

.. |license| image:: https://img.shields.io/github/license/shengchenyang/AyugeSpiderTools :target: https://img.shields.io/github/license/shengchenyang/AyugeSpiderTools :alt: license

.. |python_support| image:: https://img.shields.io/badge/python-3.11%2B-blue :target: https://pypi.org/pypi/AyugeSpiderTools :alt: python support

.. |docs| image:: https://img.shields.io/readthedocs/ayugespidertools :target: https://ayugespidertools.readthedocs.io/en/latest/ :alt: Read the Docs

.. |downloads| image:: https://img.shields.io/pypi/dm/ayugespidertools :target: https://pypistats.org/packages/ayugespidertools :alt: PyPI - Downloads

.. |codecov| image:: https://codecov.io/gh/shengchenyang/AyugeSpiderTools/graph/badge.svg?token=1QLOEW2NTI :target: https://app.codecov.io/gh/shengchenyang/AyugeSpiderTools :alt: codecov

简体中文 | English_

Documentation: https://ayugespidertools.readthedocs.io

Demo Project: https://github.com/shengchenyang/DemoSpider

❤️赞助商

.. container::

|proxy-seller|

.. |proxy-seller| image:: https://raw.githubusercontent.com/shengchenyang/AyugeSpiderTools/master/artwork/proxy-seller.png :target: https://proxy-seller.com/?partner=E267408B50C74008 :alt: proxy-seller :width: 150px

.. pull-quote:: Proxy-Seller_ 提供住宅、移动、ISP 和数据中心代理,支持 HTTP(S) 和 SOCKS5,可按国家和城市选择\ 出口 IP,可直接配合 Scrapy 的代理中间件使用。下单时使用优惠码 HOPLY15 可享折扣。

链接:https://proxy-seller.com/?partner=E267408B50C74008

长期优惠码:HOPLY15

概述

旨在提升 Scrapy 开发和维护体验。

内置通用 middlewares、pipelines;AyuItem 可直接赋值字段,在添加和修改字段后不用同步处理 pipelines 和 \ scrapy.Item 等地方,可方便地自定义数据更新/去重规则;有统一的配置管理功能,支持本地和远程配置读取;基于 mq \ 实现的 RabbitSpider 分布式任务分发。还有更多方便的功能 ...

功能亮点

  • 项目脚手架与模板: 通过 startproject 和 genspider 快速创建 Scrapy 项目,内置多种 \ Spider 模板,并支持自定义模板。
  • 动态 Item 与入库去重: AyuItem 无需预先声明字段即可动态赋值;MySQL、MongoDB、PostgreSQL 和 \ Oracle 可方便地自定义去重与更新规则。
  • 多数据库支持: 内置 MySQL、MongoDB、PostgreSQL、Oracle 和 Elasticsearch 存储管道。
  • 支持消息推送与任务分发: 支持 Kafka、RabbitMQ 消息推送,支持基于 RabbitMQ 的 RabbitSpider 分布式部署。
  • 请求中间件: 支持 aiohttp、curl_cffi 请求方式,以及随机 UA、通用代理。
  • 配置管理: 支持通过 .conf 管理项目配置,也可从 Consul 或 Nacos 获取远程配置。

安装

可以直接输入以下命令:

.. code:: bash

pip install ayugespidertools


可选安装1,安装数据库相关的所有依赖:

.. code:: bash

pip install ayugespidertools[database]


可选安装2,通过以下命令安装所有依赖:

.. code:: bash

pip install ayugespidertools[all]

注:详细的安装介绍请查看 安装指南_。

用法

开发人员只需根据命令生成示例模板,再配置相关设置即可。

使用方法示例 GIF 如下:

.. image:: https://raw.githubusercontent.com/shengchenyang/AyugeSpiderTools/master/examples/ayugespidertools-use.gif :alt: ayugespidertools-use.gif

对以上 GIF 中的步骤进行解释:

查看库版本

ayuge version

创建项目

ayuge startproject \

进入项目根目录

cd \

替换(覆盖)为真实的配置 .conf 文件:

这里是为了演示方便,正常情况是直接在 VIT 中的 .conf 文件填上你需要的配置即可

cp /root/mytemp/.conf DemoSpider/VIT/.conf

生成脚本

ayuge genspider \ \<example.com>

运行脚本

scrapy crawl \

注:也可以使用 ayuge crawl \

具体的场景案例请在 DemoSpider_ 项目中查看,也可以在 readthedocs_ 文档中查看教程。目前已适配以下场景:
  • 0).以下场景全支持从 nacos 或 consul 中获取配置,不一一举例。

数据存入 Mysql 的场景:

  • 1).demo_one: 从 .conf 中获取 mysql 配置
  • 3).demo_three: 从 consul 中获取 mysql 配置
  • 21).demo_mysql_nacos: 从 nacos 中获取 mysql 配置
  • 5).demo_five: Twisted 异步存储示例
  • 24).demo_aiomysql: 结合 aiomysql 实现的 asyncio 异步存储示例
  • 13).demo_AyuTurboMysqlPipeline: mysql 同步连接池的示例

数据存入 MongoDB 的场景:

  • 2).demo_two: 从 .conf 中获取 mongodb 配置
  • 4).demo_four: 从 consul 中获取 mongodb 配置
  • 6).demo_six: Twisted 异步存储示例
  • 17).demo_mongo_async: 结合 motor 实现的 asyncio 异步存储示例

数据存入 PostgreSQL 的场景(需要安装 ayugespidertools[database])

  • 22).demo_nine: 从 .conf 中获取 postgresql 配置
  • 23).demo_ten: Twisted 异步存储示例
  • 27).demo_eleven: asyncio 异步存储示例

数据存入 ElasticSearch 的场景(需要安装 ayugespidertools[database])

  • 28).demo_es: 普通同步存储示例
  • 29).demo_es_async: asyncio 异步存储示例

数据存入 Oracle 的场景(需要安装 ayugespidertools[database])

  • 25). demo_oracle: 普通同步存储示例
  • 26). demo_oracle_twisted: Twisted 异步存储示例
  • 36). demo_oracle_async: asyncio 异步存储示例
  • 7).demo_seven: 使用 requests 来请求的场景(已删除,更推荐 aiohttp 方式)
  • 8).demo_eight: 同时存入 Mysql 和 MongoDB 的场景
  • 9).demo_aiohttp_example: 使用 aiohttp 来请求的场景
  • 10).demo_aiohttp_test: scrapy aiohttp 在具体项目中的使用方法示例
  • 39).demo_curl_cffi: 使用 curl_cffi 请求的示例
  • 11).demo_proxy_one: 快代理动态隧道代理示例(已删除)
  • 12).demo_proxy_two: 测试快代理独享代理(已删除)
  • 37).demo_proxy: 通用代理中间件
  • 14).demo_crawl: 支持 scrapy CrawlSpider 的示例

本库中给出支持 Item Loaders 特性的示例

  • 15).demo_item_loader: 本库中使用 Item Loaders 的示例
  • 16).demo_item_loader_two: 已删除,可查看 demo_item_loader,可方便的使用 Item Loaders 了
  • 18).demo_mq: 数据存入 rabbitmq 的模板示例
  • 35).demo_mq_async: 数据存入 rabbitmq 的异步模板示例
  • 19).demo_kafka: 数据存入 kafka 的模板示例
  • 20).demo_file: 使用本库 pipeline 下载图片等文件到本地的示例
  • 30).demo_file_sec: 自行实现的图片下载示例
  • 31).demo_oss: 使用本库 pipeline 上传到 oss 的示例
  • 32).demo_oss_sec: 自行实现的 oss 上传示例
  • 33).demo_oss_super: MongoDB 存储场景 oss 上传字段支持列表类型
  • 34).demo_conf: 支持从 .conf 中获取自定义配置
  • 38).demo_mq_task: 支持从 mq 中获取采集任务

超级棒的示例

简单、快速、优雅地实现分布式开发,部署及运行的示例:demos,具体介绍请在 DemoSpider\ 项目中查看,运\ 行示例图为:

.. image:: https://raw.githubusercontent.com/shengchenyang/AyugeSpiderTools/master/examples/ayugespidertools-async-demo.png :alt: async-demo

现在更推荐使用 demo_mq_task 示例中的方式来实现分布式部署。

跑通测试

前提:需要在 tests 的 VIT 目录下创建 .conf 文件,已给出示例文件,请填写测试所需内容,然后:

  • 可以直接使用 tox 来运行测试。
  • 本库用 uv_ 开发,那么配置好 uv 后运行 make start 后,手动运行目标测试或 pytest 命令来测试等皆可。
  • 也可以使用 make 工具,make start 然后 make test 即可。

你可能在意的事

  1. 若你觉得某些场景下的功能实现不太符合你的预期,想要修改或添加自定义功能,比如移除对你无用模块、修改库名\ 等,你可以自行修改后 build。

  2. 本库主推 scrapy 扩展功能,在使用本库时,不会影响你 scrapy 项目及其它组件。

    也就是说,可使用本库开发原生的 scrapy,也可用 scrapy 的风格来开发,但还是推荐使用 DemoSpider_ \ 示例中的风格开发。不会对开发者造成过多的迁移成本。

  3. item 中 (媒体)资源字段的存储需求较复杂?比如上传到 oss 功能需要更细分的需求,或者有其它更多类型的对\ 象云存储的需要,我该怎么方便地实现?

    1. 如果你比较了解本项目和打包构建的流程,那么推荐你按照项目示例风格将需要功能添加后自行打包并安装,比\ 较方便后续使用;
    2. 因为本身就是 scrapy 项目,所以更推荐使用普通存储场景结合自己编写的 scrapy pipeline 来对 item \ 中的资源上传字段进行个性化处理,达到即保留了此库的通用和便捷,也实现了灵活性。
  4. 代码测试覆盖率有点低,考虑增加吗?

    不考虑,场景所依赖服务太多,且云服务等其它因素导致个人维护成本过高,但不必担心,我会和本地服务的自动化\ 测试结合使用。

功能

  • [✓] scrapy 的扩展功能场景

    • [✓] scrapy 脚本运行信息统计和项目依赖表采集量统计,可用于日志记录和预警

    • [✓] 自定义模板,在 ayuge startproject 和 ayuge genspider 时生成适\ 合本库的模板文件

    • [✓] 从远程应用管理服务中获取项目配置

      • [✓] 从 consul 获取项目配置
      • [✓] 从 nacos 获取项目配置(注意:优先级小于 consul)
    • [✓] 代理中间件(独享代理、动态隧道代理)

    • [✓] 随机请求头 UA 中间件

    • [✓] 使用以下工具来替换 scrapy 的 Request 来发送请求

      • [✓] requests: 这个不推荐使用,requests 同步库会降低 scrapy 运行效率\ (已移除此功能,更推荐 aiohttp 的方式)
      • [✓] aiohttp: 集成将 scrapy Request 替换为 aiohttp 的协程方式
      • [✓] curl_cffi: 集成将 scrapy Request 替换为 curl_cffi 的协程方式
    • [✓] Mysql 存储的场景下适配

      • [✓] 自动创建 Mysql 用户场景下需要的数据库和数据表及字段格式,还有字段注释
    • [✓] MongoDB 存储场景适配

    • [✓] PostgreSQL 存储场景适配

    • [✓] ElasticSearch 存储场景适配

    • [✓] Oracle 存储场景适配

    • [✓] oss 上传场景适配

    • [✓] asyncio 语法支持与 async 第三方库支持示例

      • [✓] spider 中使用 asyncio 的 aiohttp 示例
      • [✓] pipeline 中使用 asyncio 的 aioMysql 示例
    • [✓] 集成 Kafka,RabbitMQ 等数据推送功能

  • [✓] 常用开发场景

    • [✓] sql 语句拼接,只用于简单场景。

    • [✓] 数据格式化处理,比如:去除网页标签,去除无效空格等

    • [✓] 字体反爬还原方法

      • [✓] 基于 ttf,woff 之类的字体文件映射,或结合 css 等实现

        • [✓] 可以直接在字体文件 xml 中找到映射关系的:使用 fontforge_ 工具导出映射即可。
        • [✓] 无法找到映射关系的,则一般使用 ocr 识别(准确率非百分百),通过 fontforge 导出每个映射的\ png,后再通过各种方式识别。
      • [✓] 字体反爬部分功能迁移到 FontMapster 项目中。

    • [✓] html 数据处理,去除标签,不可见字符,特殊字符改成正常显示等

    • [✓] 添加常用的图片验证码中的处理方法

      • [✓] 滑块缺口距离的识别方法(多种实现方式)
      • [✓] 根据滑块距离生成轨迹数组的方法
      • [✓] 识别点选验证码位置及点击顺序
      • [✓] 图片乱序混淆的还原方法示例

注意:功能演示我将放入 readthedocs_ 文档中,以防此部分内容过多。

感谢

  • scrapy_

支持 & 贡献

.. list-table:: :align: center :widths: 20 40 40

.. _English: https://github.com/shengchenyang/AyugeSpiderTools/blob/master/README_en.rst .. _安装指南: https://ayugespidertools.readthedocs.io/en/latest/intro/install.html .. _DemoSpider: https://github.com/shengchenyang/DemoSpider .. _readthedocs: https://ayugespidertools.readthedocs.io/en/latest/ .. _uv: https://docs.astral.sh/uv/ .. _fontforge: https://github.com/fontforge/fontforge/releases .. _scrapy: https://github.com/scrapy/scrapy .. _Issues: https://github.com/shengchenyang/AyugeSpiderTools/issues .. _PR: https://ayugespidertools.readthedocs.io/en/latest/additional/contributing.html .. _Proxy-Seller: https://proxy-seller.com/?partner=E267408B50C74008

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases ayugespidertools

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229