# -*- coding: utf-8 -*- # Scrapy settings for maoyan 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…
下面对比了Scrapy爬虫框架中的两个流程—— ① Scrapy框架的基本运作流程:② Spider或其子类的几个方法的执行流程. 这两个流程是互相联系的,可对比学习. 1 ● Scrapy框架的基本运作流程 ① Scrapy引擎从调度器(Scheduler)中获取一个链接(URL) ② Scrapy引擎将上述的URL封装成一个请求对象(Request),并传给下载器(Downloader) ③下载器(Downloader)把资源下载下来,并封装成响应对象(Response) ④ Scrapy引…