Skip to main content

Crawlerd Web

Crawlerd Web 是分布式 crawlframe 系统的“总控塔”。它提供了一个集中的管理界面和 API,用于编排爬虫节点、管理项目、调度任务以及监控系统状态。该项目基于 FastAPI 构建,既作为 RESTful API 后端,也作为 React 前端仪表盘的宿主。

✨ 功能特性

  • 集中式仪表盘:提供现代化的 React 前端界面,用于可视化和管理您的爬虫基础设施。
  • 节点管理:注册、监控和管理分布式的爬虫节点 (Agent)。
  • 项目编排:管理爬虫项目的上传、版本和部署。
  • 任务调度:使用 APScheduler 调度和分发爬虫任务。
  • 系统监控:实时检查系统健康状态和节点连通性。
  • RESTful API:提供全面的 API 接口,便于自动化和集成。

📦 安装与构建

本项目已采用现代 Python 包结构,支持直接安装或打包分发。

1. 源码直接安装

在 crawlerd_web 目录下直接安装:

pip install .

2. 打包为 Wheel

如果您需要分发安装包,可以使用 build 或 uv 工具进行打包:

# 安装打包工具
pip install build

# 执行打包
python -m build
# 或者如果您使用 uv
uv build

打包完成后,.whl 文件将生成在 dist/ 目录下,您可以将该文件分发到服务器上安装:

pip install dist/crawlerd_web-0.1.0-py3-none-any.whl

🚀 启动与使用

安装完成后,系统会自动注册 crawlerd-web 命令行工具。

基本启动

注意:启动时必须指定 SQLite 数据库的存储路径。程序会自动创建所需的目录和数据库文件。

crawlerd-web --db-path ./crawlerd_data.db

默认监听端口为 80,启动后直接访问:http://localhost

自定义端口与地址

# 绑定到 8080 端口,监听所有网卡
crawlerd-web --db-path ./data.db --port 8080 --host 0.0.0.0

参数说明

参数 说明 默认值
--db-path SQLite 数据库文件路径 (必须) 无
--port 服务监听端口 80
--host 服务绑定地址 0.0.0.0

🛠️ 开发指南

开发模式安装

如果您正在开发此项目,建议使用“可编辑模式”安装,这样修改代码后无需重新安装:

pip install -e .

🔌 API 文档

📂 项目结构

crawlerd_web/
├── src/
│   └── crawlerd_web/
│       ├── api/            # API 路由定义
│       ├── static/         # 编译后的 React 前端资源 (自动打包)
│       ├── main.py         # 程序入口与 CLI 定义
│       └── database.py     # 数据库连接与初始化
├── pyproject.toml          # 项目构建配置与依赖
├── MANIFEST.in             # 资源文件包含规则
└── README.md               # 说明文档

Metadata

Release files for crawlerd-web 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crawlerd-web 0.1.1
File Size Uploaded Provenance Actions
crawlerd_web-0.1.1.tar.gz 111.1 kB Without provenance Details for crawlerd_web-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crawlerd-web 0.1.1
File Interpreter ABI Platform Actions
crawlerd_web-0.1.1-py3-none-any.whl Python 3 none any Details for crawlerd_web-0.1.1-py3-none-any.whl

Total release size: 223.6 kB

Release files / crawlerd_web-0.1.1.tar.gz

Download URL crawlerd_web-0.1.1.tar.gz
Size 111.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3d7033b6ca0f05c63ffbd855dd3aec27723759948f8917bfd44e81b2d7c41cfa
BLAKE2b-256 checksum
How to use checksums
aa546af6fef4725c4b0be9de2d4e49902f9bf25135e9203b9e7e2e33867cdec3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / crawlerd_web-0.1.1-py3-none-any.whl

Download URL crawlerd_web-0.1.1-py3-none-any.whl
Size 112.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
333cda6dd2057b1fe31c6963c05621116fd1d4d294c31f0a607c4a5a6a60e9be
BLAKE2b-256 checksum
How to use checksums
b3e996ed34bad31bfb5f2b170acc9b244219237feac4df19a5c32a34f3310504
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for crawlerd-web 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page