# ScriptProxy **Repository Path**: rajscode/ScriptProxy ## Basic Information - **Project Name**: ScriptProxy - **Description**: No description available - **Primary Language**: C# - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-22 - **Last Updated**: 2022-01-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 服务开启流程 1. 启动代理服务 2. 启动 Spiders 3. 启动 Appium Server 4. 启动 ScriptAgent ### 任务执行流程 1. ScriptAgent 订阅公网 RabbitMQ 消息 2. 客户端向公网 RabbitMQ 生产消息(爬取指令) 3. ScriptAgent 接收消息指令,检查连接的空闲终端执行自动化脚本 4. 代理服务劫持微信文章列表请求,将 URL, Headers, Body 存储到本机 redis 中,并 PUBLISH 一条开启 Scrapy Spider 的指令 5. Scrapy Spiders 服务收到启动指令后,会通过上述步骤存储的 URL,Headers,Body 进行模拟请求,将所有文章列表爬取下来存入数据库。 6. 代理服务同时也会劫持: 1. 内容 (注入 SignalR 客户端, 用于打开指定 文章消息链接) 2. 拓展信息 (存储阅读数,点赞数等) 3. 评论 (存储评论信息)