请老师看一下报错原因
请老师看一下为什么报错了
2020-06-08 18:09:45 [scrapy.utils.log] INFO: Scrapy 2.1.0 started (bot: guazi_project)
2020-06-08 18:09:45 [scrapy.utils.log] INFO: Versions: lxml 4.5.1.0, libxml2 2.9.5, cssselect 1.1.0, parsel 1.6.0, w3lib 1.22.0, Twisted 20.3.0, Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)], pyOpenSSL 19.1.0 (OpenSSL 1.1.1g 21 Apr 2020), cryptography 2.9.2, Platform Windows-10-10.0.18362-SP0
2020-06-08 18:09:45 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.selectreactor.SelectReactor
2020-06-08 18:09:45 [scrapy.crawler] INFO: Overridden settings:
{'BOT_NAME': 'guazi_project',
'NEWSPIDER_MODULE': 'guazi_project.spiders',
'SPIDER_MODULES': ['guazi_project.spiders'],
'USER_AGENT': ('Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like '
'Gecko) Chrome/17.0.963.84 Safari/535.11 SE 2.X MetaSr 1.0',)}
2020-06-08 18:09:45 [scrapy.extensions.telnet] INFO: Telnet Password: f31d8abdc97bf266
2020-06-08 18:09:46 [scrapy.middleware] INFO: Enabled extensions:
['scrapy.extensions.corestats.CoreStats',
'scrapy.extensions.telnet.TelnetConsole',
'scrapy.extensions.logstats.LogStats']
2020-06-08 18:09:46 [scrapy.middleware] INFO: Enabled downloader middlewares:
['scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware',
'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware',
'scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware',
'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware',
'guazi_project.middlewares.Guazi_Pro_Dow_Mid',
'scrapy.downloadermiddlewares.retry.RetryMiddleware',
'scrapy.downloadermiddlewares.redirect.MetaRefreshMiddleware',
'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware',
'scrapy.downloadermiddlewares.redirect.RedirectMiddleware',
'scrapy.downloadermiddlewares.cookies.CookiesMiddleware',
'scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware',
'scrapy.downloadermiddlewares.stats.DownloaderStats']
2020-06-08 18:09:46 [scrapy.middleware] INFO: Enabled spider middlewares:
['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware',
'scrapy.spidermiddlewares.offsite.OffsiteMiddleware',
'scrapy.spidermiddlewares.referer.RefererMiddleware',
'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware',
'scrapy.spidermiddlewares.depth.DepthMiddleware']
2020-06-08 18:09:46 [scrapy.middleware] INFO: Enabled item pipelines:
['guazi_project.pipelines.GuaziProjectPipeline']
2020-06-08 18:09:46 [scrapy.core.engine] INFO: Spider opened
2020-06-08 18:09:46 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2020-06-08 18:09:46 [scrapy.extensions.telnet] INFO: Telnet console listening on 127.0.0.1:6023
2020-06-08 18:09:46 [scrapy.core.engine] INFO: Closing spider (finished)
2020-06-08 18:09:46 [scrapy.statscollectors] INFO: Dumping Scrapy stats:
{'elapsed_time_seconds': 0.01464,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2020, 6, 8, 10, 9, 46, 892060),
'log_count/INFO': 10,
'start_time': datetime.datetime(2020, 6, 8, 10, 9, 46, 877420)}
2020-06-08 18:09:46 [scrapy.core.engine] INFO: Spider closed (finished)
正在回答
同学,你好。报错显示关键字错误,查看关键字是否如图划横线处样式书写了:
祝学习愉快~
- 参与学习 人
- 提交作业 107 份
- 解答问题 1672 个
Python最广为人知的应用就是爬虫了,有趣且酷的爬虫技能并没有那么遥远,本阶段带你学会利用主流Scrapy框架完成爬取招聘网站和二手车网站的项目实战。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星