创建项目 # 创建爬虫项目 scrapy startproject GuzhuangWallpaper # 进入爬虫项目的目录,生成爬虫文件(模板) scrapy genspider guzhuang www.52guzhuang.com 2. setting文件的配置 # -- coding: utf-8 -- # Scrapy settings for GuzhuangWallpaper project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/topics/downloader-middleware.html # https:/....
https://blog.lacknb.cn/articles/2019/08/26/1577974158774.html
创建项目 # 创建爬虫项目 scrapy startproject GuzhuangWallpaper # 进入爬虫项目的目录,生成爬虫文件(模板) scrapy genspider guzhuang www.52guzhuang.com 2. setting文件的配置 # -- coding: utf-8 -- # Scrapy settings for GuzhuangWallpaper project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/topics/downloader-middleware.html # https:/....