# reptiles **Repository Path**: lukangda/reptiles ## Basic Information - **Project Name**: reptiles - **Description**: PHP爬虫-swoole+redis - **Primary Language**: PHP - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-07-12 - **Last Updated**: 2023-10-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 首先确保安装了redis和swoole扩展 启动多任务爬虫: 先启动server服务器:#php server.php 再启动client客户端:#php client.php client发来消息告诉server开工,然后server就启动爬虫,并返回消息给client, client收到消息就会关闭连接,server则在进行漫长的爬取.... 这里还写有一种协程风格爬虫,CPU多的或则有兴趣的可以试下 启动协程爬虫:#php server_co.php 注意:多任务爬虫和协程爬虫可以同时启用,协程爬虫可以同时启动多,可以加快爬取速度 以上爬虫仅为学习使用,且要在夜间进行,不要给别人网站带来负载影响 对应博客地址:https://blog.csdn.net/qq_36034503/article/details/107294701