Spider closed (finished) 沒完成

ShellCollector發表於2020-12-29

 

2020-12-29 01:45:47 [scrapy.statscollectors] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 309977,
 'downloader/request_count': 609,
 'downloader/request_method_count/GET': 609,
 'downloader/response_bytes': 1549878,
 'downloader/response_count': 609,
 'downloader/response_status_count/200': 333,
 'downloader/response_status_count/302': 276,
 'elapsed_time_seconds': 303.197538,
 'finish_reason': 'finished',
 'finish_time': datetime.datetime(2020, 12, 28, 17, 45, 47, 574530),
 'item_scraped_count': 275,
 'log_count/INFO': 13,
 'request_depth_max': 58,
 'response_received_count': 609,
 'scheduler/dequeued': 609,
 'scheduler/dequeued/memory': 609,
 'scheduler/enqueued': 609,
 'scheduler/enqueued/memory': 609,
 36%|███▌      | 36/100 [00:00<00:00, 358.73it/s]
2020-12-29 01:45:47 [scrapy.core.engine] INFO: Spider closed (finished)

 

我猜測是scrapy的robot協議沒關閉吧?

settings.py中

1

2

# robots 協議,True的話是遵守協議,所以要False關掉    

ROBOTSTXT_OBEY = False

相關文章