
Security News
Rust 1.100 Will Add Dependency Cooldowns to Cargo
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.
deepspider
Advanced tools
智能爬虫工程平台 - 基于 DeepAgents + Patchright 的 AI 爬虫 Agent
从 JS 逆向到完整爬虫脚本的一站式 AI Agent 解决方案。
# 方式一:npm 全局安装(推荐)
npm install -g deepspider
# 方式二:pnpm 全局安装
pnpm approve-builds -g deepspider isolated-vm # 首次需要批准构建脚本
pnpm install -g deepspider
# 方式三:克隆仓库
git clone https://github.com/ma-pony/deepspider.git
cd deepspider
pnpm install
cp .env.example .env # 配置环境变量
pnpm run setup:crypto # 安装 Python 加密库(可选)
安装完成后,首次运行会提示配置环境变量(LLM API)。
注意: 项目依赖
isolated-vm原生模块,需要 C++ 编译环境:
- macOS:
xcode-select --install- Ubuntu:
sudo apt install build-essential- Windows: 安装 Visual Studio Build Tools
DeepSpider 需要配置 LLM API 才能运行。支持任何兼容 OpenAI 格式的供应商。
| 变量名 | 必填 | 说明 |
|---|---|---|
DEEPSPIDER_API_KEY | 是 | API 密钥 |
DEEPSPIDER_BASE_URL | 是 | API 地址 |
DEEPSPIDER_MODEL | 是 | 模型名称 |
常用供应商配置示例:
# OpenAI
DEEPSPIDER_API_KEY=sk-xxx
DEEPSPIDER_BASE_URL=https://api.openai.com/v1
DEEPSPIDER_MODEL=gpt-4o
# DeepSeek
DEEPSPIDER_API_KEY=sk-xxx
DEEPSPIDER_BASE_URL=https://api.deepseek.com/v1
DEEPSPIDER_MODEL=deepseek-chat
# 其他 OpenAI 兼容供应商
DEEPSPIDER_API_KEY=your-key
DEEPSPIDER_BASE_URL=https://your-provider.com/v1
DEEPSPIDER_MODEL=model-name
# 配置环境变量
export DEEPSPIDER_API_KEY=sk-xxx
export DEEPSPIDER_BASE_URL=https://api.openai.com/v1
export DEEPSPIDER_MODEL=gpt-4o
# 启动 Agent - 指定目标网站
deepspider https://example.com
# 启动 Agent - 纯交互模式
deepspider
# 配置环境变量(二选一)
cp .env.example .env # 编辑 .env 文件
# 或 export DEEPSPIDER_API_KEY=... 等
# 安装 Python 依赖(可选,用于执行生成的 Python 代码)
pnpm run setup:crypto
# 启动 Agent
pnpm run agent https://example.com
# MCP 服务(供 Claude Code 等调用)
pnpm run mcp
# 运行测试
pnpm test
pnpm run agent https://target-site.com┌─────────────────────────────────────────────────────┐
│ DeepSpider │
│ (爬虫编排 - 智能调度) │
└──────────────────────┬──────────────────────────────┘
│ 按需调用
┌───────────────┼───────────────┐
▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│static-agent │ │captcha-agent│ │anti-detect │
│ 静态分析 │ │ 验证码处理 │ │ 反检测 │
└──────┬──────┘ └─────────────┘ └─────────────┘
▼
┌─────────────┐
│dynamic-agent│
│ 动态调试 │
└──────┬──────┘
▼
┌─────────────┐ ┌─────────────┐
│sandbox-agent│ ──▶ │js2python │
│ 沙箱验证 │ │ 代码转换 │
└─────────────┘ └─────────────┘
| 子代理 | 职责 | 核心工具 |
|---|---|---|
| crawler | 爬虫编排:整合各模块、生成完整脚本 | file, store, crawler |
| static | 静态分析:解包、反混淆、加密定位 | webcrack, deobfuscate, analyze |
| dynamic | 动态分析:浏览器控制、Hook、数据采集 | browser, debug, capture |
| sandbox | 沙箱执行:环境补全、代码执行 | sandbox, env, patch |
| js2python | JS转Python:加密代码转换、验证 | python, analyzer |
| captcha | 验证码处理:OCR、滑块、点选 | captcha_ocr, captcha_slide |
| anti-detect | 反检测:指纹管理、代理池 | proxy, fingerprint |
deepspider/
├── src/
│ ├── agent/ # DeepAgent 系统
│ │ ├── tools/ # 工具集(90+)
│ │ ├── subagents/ # 子代理
│ │ ├── skills/ # 领域技能
│ │ └── prompts/ # 系统提示
│ ├── browser/ # 浏览器运行时
│ │ ├── client.js # Patchright 客户端
│ │ ├── cdp.js # CDP 会话管理
│ │ ├── defaultHooks.js # 默认注入的 Hook
│ │ ├── interceptors/ # CDP 拦截器
│ │ └── ui/ # 浏览器内 UI 面板
│ ├── analyzer/ # 静态分析器
│ ├── env/ # 环境补丁模块
│ ├── store/ # 数据存储
│ └── mcp/ # MCP 服务
├── bin/cli.js # CLI 入口
└── test/ # 测试
欢迎提交 Issue 和 Pull Request!
MIT
FAQs
AI-native web scraping and JavaScript reverse-engineering platform powered by DSH, Patchright/CDP, semantic recovery, and verifiable Solvers
The npm package deepspider receives a total of 140 weekly downloads. As such, deepspider popularity was classified as not popular.
We found that deepspider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.