控制台返回状态如下(之前还有一些如下页面信息,2018-05-19 21:49:44 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to <GET https://passport.lagou.com/login/login.html?msg=validation&uStatus=2&clientIp=113.99.220.141> from <GET https://www.lagou.com/zhaopin/CTO/>,包括有 jobs的 ):
2018-05-19 21:49:44 [scrapy.statscollectors] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 131331,
'downloader/request_count': 329,
'downloader/request_method_count/GET': 329,
'downloader/response_bytes': 189515,
'downloader/response_count': 329,
'downloader/response_status_count/200': 4,
'downloader/response_status_count/302': 325,
'dupefilter/filtered': 323,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2018, 5, 19, 13, 49, 44, 206308),
'log_count/DEBUG': 331,
'log_count/INFO': 7,
'request_depth_max': 1,
'response_received_count': 4,
'scheduler/dequeued': 327,
'scheduler/dequeued/memory': 327,
'scheduler/enqueued': 327,
'scheduler/enqueued/memory': 327,
'start_time': datetime.datetime(2018, 5, 19, 13, 49, 28, 666419)}
2018-05-19 21:49:44 [scrapy.core.engine] INFO: Spider closed (finished)
带你彻底掌握Scrapy,用Django+Elasticsearch搭建搜索引擎
了解课程