爬取豆瓣TOP250电影,不知道为啥爬取不了,求大神指教
人机交互信息如下程序代码:
2020-01-31 09:27:09 [scrapy.utils.log] INFO: Scrapy 1.8.0 started (bot: scrapy_BT) 2020-01-31 09:27:09 [scrapy.utils.log] INFO: Versions: lxml 4.4.2.0, libxml2 2.9.5, cssselect 1.1.0, parsel 1.5.2, w3lib 1.21.0, Twisted 19.10.0, Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)], pyOpenSSL 19.1.0 (OpenSSL 1.1.1d 10 Sep 2019), cryptography 2.8, Platform Windows-10-10.0.18362-SP0 2020-01-31 09:27:09 [scrapy.crawler] INFO: Overridden settings: {'BOT_NAME': 'scrapy_BT', 'CONCURRENT_REQUESTS': 1, 'DOWNLOAD_DELAY': 3, 'NEWSPIDER_MODULE': 'scrapy_BT.spiders', 'SPIDER_MODULES': ['scrapy_BT.spiders'], 'USER_AGENT': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.3'} 2020-01-31 09:27:09 [scrapy.extensions.telnet] INFO: Telnet Password: f580a79a40d86a64 2020-01-31 09:27:09 [scrapy.middleware] INFO: Enabled extensions: ['scrapy.extensions.corestats.CoreStats', 'scrapy.extensions.telnet.TelnetConsole', 'scrapy.extensions.logstats.LogStats'] 2020-01-31 09:27:10 [scrapy.middleware] INFO: Enabled downloader middlewares: ['scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware', 'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware', 'scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware', 'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware', '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-01-31 09:27:10 [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-01-31 09:27:10 [scrapy.middleware] INFO: Enabled item pipelines: ['scrapy_BT.pipelines.ScrapyBtPipeline'] 2020-01-31 09:27:10 [scrapy.core.engine] INFO: Spider opened 2020-01-31 09:27:10 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min) 2020-01-31 09:27:10 [scrapy.extensions.telnet] INFO: Telnet console listening on 127.0.0.1:6023 2020-01-31 09:27:10 [scrapy.core.engine] INFO: Closing spider (finished) 2020-01-31 09:27:10 [scrapy.statscollectors] INFO: Dumping Scrapy stats: {'elapsed_time_seconds': 0.009109, 'finish_reason': 'finished', 'finish_time': datetime.datetime(2020, 1, 31, 1, 27, 10, 747709), 'log_count/INFO': 10, 'start_time': datetime.datetime(2020, 1, 31, 1, 27, 10, 738600)} 2020-01-31 09:27:10 [scrapy.core.engine] INFO: Spider closed (finished)