mirror of
https://github.com/violettoolssite/CFspider.git
synced 2026-04-05 03:09:01 +08:00
feat: add npm package support for cfspider-browser, update README with quick install
This commit is contained in:
47
README.md
47
README.md
@@ -1,6 +1,7 @@
|
||||
# CFspider - Cloudflare Workers 代理 IP 池 + AI 智能浏览器
|
||||
|
||||
[](https://pypi.org/project/cfspider/)
|
||||
[](https://www.npmjs.com/package/cfspider-browser)
|
||||
[](https://pypi.org/project/cfspider/)
|
||||
[](LICENSE)
|
||||
|
||||
@@ -14,30 +15,52 @@
|
||||
|
||||
---
|
||||
|
||||
## 智能浏览器(NEW)
|
||||
## 🚀 快速安装
|
||||
|
||||
### 智能浏览器(Electron 桌面应用)
|
||||
|
||||
```bash
|
||||
# 方式一:npm 全局安装(推荐)
|
||||
npm install -g cfspider-browser
|
||||
cfspider-browser
|
||||
|
||||
# 方式二:npx 直接运行
|
||||
npx cfspider-browser
|
||||
|
||||
# 方式三:克隆仓库
|
||||
git clone https://github.com/violettoolssite/CFspider.git
|
||||
cd CFspider/cfspider-browser
|
||||
npm install && npm run electron:dev
|
||||
```
|
||||
|
||||
### Python 代理库
|
||||
|
||||
```bash
|
||||
# 官方加速源(东京服务器,推荐)
|
||||
pip install -i https://server.cfspider.com/simple/ cfspider
|
||||
|
||||
# 或使用 PyPI
|
||||
pip install cfspider
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 智能浏览器
|
||||
|
||||
AI 驱动的桌面浏览器,通过自然语言对话控制浏览器自动化。
|
||||
|
||||
**对话示例:**
|
||||
```
|
||||
用户: 打开京东
|
||||
AI: 好的,让我通过搜索引擎找到京东...
|
||||
AI: 正在通过搜索引擎找到京东...
|
||||
[跳转 Bing] → [搜索"京东"] → [点击官网链接]
|
||||
AI: 已打开京东官网!
|
||||
AI: 已打开京东官网。
|
||||
|
||||
用户: 搜索男装
|
||||
AI: 正在京东搜索框输入"男装"...
|
||||
[输入文本] → [回车]
|
||||
AI: 正在输入"男装"...
|
||||
AI: 搜索完成,已显示男装商品列表。
|
||||
```
|
||||
|
||||
**快速开始:**
|
||||
```bash
|
||||
cd cfspider-browser
|
||||
npm install
|
||||
npm run electron:dev
|
||||
```
|
||||
|
||||
**支持的 AI 服务商:**
|
||||
|
||||
| 服务商 | API Key | 推荐模型 |
|
||||
|
||||
@@ -1,17 +1,54 @@
|
||||
{
|
||||
"name": "cfspider-browser",
|
||||
"version": "1.0.0",
|
||||
"description": "cfspider-智能浏览器 - 可视化爬虫,AI驱动,点击即可爬取",
|
||||
"description": "CFspider 智能浏览器 - AI驱动的可视化爬虫,自然语言控制浏览器自动化",
|
||||
"keywords": [
|
||||
"browser",
|
||||
"automation",
|
||||
"ai",
|
||||
"crawler",
|
||||
"scraper",
|
||||
"electron",
|
||||
"cfspider",
|
||||
"deepseek",
|
||||
"ollama"
|
||||
],
|
||||
"author": {
|
||||
"name": "violettoolssite",
|
||||
"email": "violettoolssite@gmail.com"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"homepage": "https://www.cfspider.com",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/violettoolssite/CFspider.git"
|
||||
"url": "https://github.com/violettoolssite/CFspider.git",
|
||||
"directory": "cfspider-browser"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/violettoolssite/CFspider/issues"
|
||||
},
|
||||
"main": "dist-electron/main.js",
|
||||
"bin": {
|
||||
"cfspider-browser": "./bin/cli.js"
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*",
|
||||
"dist-electron/**/*",
|
||||
"electron/**/*",
|
||||
"src/**/*",
|
||||
"public/**/*",
|
||||
"bin/**/*",
|
||||
"index.html",
|
||||
"vite.config.ts",
|
||||
"tsconfig.json",
|
||||
"tsconfig.node.json",
|
||||
"tailwind.config.js",
|
||||
"postcss.config.js",
|
||||
"electron-builder.json",
|
||||
"README.md"
|
||||
],
|
||||
"scripts": {
|
||||
"postinstall": "echo 'Run: npx cfspider-browser' to start",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
|
||||
Reference in New Issue
Block a user