scrapy框架的创建

1、scrapy startproject 项目名 //创建项目(修改setting里面的设置)

image-20211122165349799

image-20211122165415905

2、scrapy genspider 爬虫名 域名(网址:51moot.net) //创建爬虫文件

image-20211122165459188

3、scrapy crawl 爬虫名

image-20211122165538281

4、items.py创建实体类

image-20211122165715871

5、以爬虫名为moot.py的文件为例:

image-20211122165807775

image-20211122165828410

posted @ 2021-12-10 09:56  凉尘LZ  阅读(120)  评论(0)    收藏  举报