From 981a20a8bd91004e972037afc054d5d8e32a91d2 Mon Sep 17 00:00:00 2001 From: psqoycetx <1767552118@qq.com> Date: Sat, 22 Apr 2023 17:59:31 +0800 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 66331a8..32d857a 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,22 @@ *[快速开始](#下载安装) *[下载安装](#下载安装) *[创建一个分布式爬虫](#爬虫开始) + *[修改配置文件](#修改配置文件) + *[启动爬虫](#启动爬虫) ###下载安装 pip install -r requirements.txt ###爬虫开始 +scrapy startproject XXX(项目名) +cd XXX +scrapy genspider xxx(爬虫名) www.baidu.com(域名-示例) + +###修改配置文件 +1、配置setting.py文件 +2、根据任务需求更改items.py,middlewares.py,pipelines.py文件 + +###启动爬虫 +1、运行 +