标题:爬取豆瓣TOP250电影,不知道为啥爬取不了,求大神指教
只看楼主
是2014
Rank: 1
等 级:新手上路
帖 子:29
专家分:0
注 册:2017-3-21
结帖率:100%
 问题点数:0 回复次数:1 
爬取豆瓣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)
搜索更多相关主题的帖子: engine Telnet redirect datetime 电影 
2020-01-31 09:42
LanXX
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2019-8-5
得分:0 
嗯 我是新手,没看懂你的这是什么,能发一下你的代码出来看看吗?不过豆瓣电影,我之前用bs4爬的,你可以试试
2020-02-03 12:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-499046-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.408657 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved