小白学习scrapy 报错问题

2018-10-24 10:40:11 [scrapy.utils.log] INFO: Scrapy 1.5.1 started (bot: douban)

2018-10-24 10:40:11 [scrapy.utils.log] INFO: Versions: lxml 4.2.5.0, libxml2 2.9.7, cssselect 1.0.3, parsel 1.4.0, w3lib 1.19.0, Twisted 18.9.0, Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)], pyOpenSSL 18.0.0 (OpenSSL 1.0.2p  14 Aug 2018), cryptography 2.3.1, Platform Windows-10-10.0.17134-SP0

2018-10-24 10:40:11 [scrapy.crawler] INFO: Overridden settings: {'BOT_NAME': 'douban', 'CONCURRENT_REQUESTS': 1, 'DOWNLOAD_DELAY': 3, 'NEWSPIDER_MODULE': 'douban.spiders', 'SPIDER_MODULES': ['douban.spiders'], 'USER_AGENT': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36'}

2018-10-24 10:40:11 [scrapy.middleware] INFO: Enabled extensions:

['scrapy.extensions.corestats.CoreStats',

 'scrapy.extensions.telnet.TelnetConsole',

 'scrapy.extensions.logstats.LogStats']

2018-10-24 10:40:15 [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']

2018-10-24 10:40:15 [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']

2018-10-24 10:40:15 [scrapy.middleware] INFO: Enabled item pipelines:

[]

2018-10-24 10:40:15 [scrapy.core.engine] INFO: Spider opened

2018-10-24 10:40:15 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)

2018-10-24 10:40:15 [scrapy.extensions.telnet] DEBUG: Telnet console listening on 127.0.0.1:6023

2018-10-24 10:40:15 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://movie.douban.com/top250> (referer: None)

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

{'serial_number': None}

2018-10-24 10:40:15 [scrapy.core.engine] INFO: Closing spider (finished)

2018-10-24 10:40:15 [scrapy.statscollectors] INFO: Dumping Scrapy stats:

{'downloader/request_bytes': 301,

 'downloader/request_count': 1,

 'downloader/request_method_count/GET': 1,

 'downloader/response_bytes': 12873,

 'downloader/response_count': 1,

 'downloader/response_status_count/200': 1,

 'finish_reason': 'finished',

 'finish_time': datetime.datetime(2018, 10, 24, 2, 40, 15, 638552),

 'log_count/DEBUG': 2,

 'log_count/INFO': 7,

 'response_received_count': 1,

 'scheduler/dequeued': 1,

 'scheduler/dequeued/memory': 1,

 'scheduler/enqueued': 1,

 'scheduler/enqueued/memory': 1,

 'start_time': datetime.datetime(2018, 10, 24, 2, 40, 15, 151663)}

2018-10-24 10:40:15 [scrapy.core.engine] INFO: Spider closed (finished)


DJ兔小白
浏览 1236回答 2
2回答

鱼右

是不是请求没有发出去呢
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python