Eagle-Eye Scraper
Eagle-Eye Scraper 是一个高效、灵活且具备原生分布式特性的 Python 数据采集框架。它支持静态/动态网页、API 数据采集,并通过模块化架构实现采集逻辑与业务逻辑的彻底解耦,适合构建可维护、可扩展的数据抓取系统。
✨ 核心特点
-
原生分布式设计 内置对分布式任务调度的支持,轻松扩展至多节点并发采集,适用于大规摸爬取任务。
-
通用采集能力 支持静态网页、JavaScript 渲染页面和 API 接口等多种数据源类型,适应各类业务需求。
-
逻辑解耦架构 采集引擎逻辑与业务处理逻辑完全分离,便于测试、维护与功能演进。
-
高性能任务调度 集成
APScheduler提供异步高效的定时调度能力,支持复杂的任务管理。 -
模块化与插件化设计 支持自定义采集器、过滤器、解析器等组件,方便二次开发和集成。
📦 安装方式
基础安装
pip install eagle-eye-scraper
安装可选依赖项
根据使用场景,可选择安装如下依赖:
| 组件 | 安装命令 |
|---|---|
| Redis | pip install "eagle-eye-scraper[redis]" |
| MongoDB | pip install "eagle-eye-scraper[mongodb]" |
| MySQL | pip install "eagle-eye-scraper[mysql]" |
| MinIO | pip install "eagle-eye-scraper[minio]" |
| Pulsar MQ | pip install "eagle-eye-scraper[mq]" |
| 多组件组合安装 | pip install "eagle-eye-scraper[redis,mongodb,minio]" |
💡 如果使用的是旧版 pip,请将
[]用引号括起来,例如:pip install "eagle-eye-scraper[mongo,redis]"
🧰 示例用法
from eagle_eye_scraper import Spider
class SimpleSpider(Spider):
def crawl(self, **kwargs):
# 模拟从网络抓取数据
self.raw_data = "<html><title>示例页面</title><body>Hello World</body></html>"
print("抓取完成")
def parse(self, **kwargs):
# 模拟对抓取数据的解析
title_start = self.raw_data.find("<title>") + 7
title_end = self.raw_data.find("</title>")
title = self.raw_data[title_start:title_end]
print(f"解析得到标题:{title}")
if __name__ == "__main__":
spider = SimpleSpider()
spider.run()
📄 License
MIT License
Metadata
Release files for eagle-eye-scraper 1.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eagle_eye_scraper-1.3.6.tar.gz | 30.0 kB | Without provenance | Details for eagle_eye_scraper-1.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eagle_eye_scraper-1.3.6-py3-none-any.whl | Python 3 | none | any | Details for eagle_eye_scraper-1.3.6-py3-none-any.whl |
Total release size: 72.0 kB
Release files / eagle_eye_scraper-1.3.6.tar.gz
| Download URL | eagle_eye_scraper-1.3.6.tar.gz |
|---|---|
| Size | 30.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
042ec25e6d50fb11726d0a8e10bbfb8205a2400fa65555ee260ea99a8bc96a22
|
|
BLAKE2b-256 checksum How to use checksums |
0c2f05b75a6e69bedc6472a1366b89bb8aaba2ad8fd6a0db2ebfa061420d5ae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.8.10
|
Release files / eagle_eye_scraper-1.3.6-py3-none-any.whl
| Download URL | eagle_eye_scraper-1.3.6-py3-none-any.whl |
|---|---|
| Size | 42.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f108a96d67a6dd9dd76ab710f36e0c539fe8bca0445d27b3d864fd9135b63b8
|
|
BLAKE2b-256 checksum How to use checksums |
9813befc9f621f49c2eaf903e30f6b3be1f1f14039f01de373799f9c1566ce11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.8.10
|
Security for eagle-eye-scraper 1.3.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.