Open john-hu opened 2 years ago
non-200 error will causes URL locked issue.
Lock 60, it only runs 10:
2021-12-29 06:55:02 [scrapy.core.engine] INFO: Spider opened
2021-12-29 06:55:03 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2021-12-29 06:55:03 [scrapy.extensions.telnet] INFO: Telnet console listening on 127.0.0.1:6025
2021-12-29 06:55:03 [peeler.scrapy_utils.spiders.base] INFO: locked urls count: 60
2021-12-29 06:55:03 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://www.recipetineats.com/robots.txt> (referer: None)
2021-12-29 06:55:47 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://www.recipetineats.com/pearl-barley-soup/comment-page-2/#comment-1225938> (referer: None)
2021-12-29 06:55:47 [peeler.general.spiders.general_result] INFO: site: RecipeTin Eats in en-US
2021-12-29 06:55:47 [peeler.scrapy_utils.spiders.generator_base] ERROR: URL https://www.recipetineats.com/pearl-barley-soup/comment-page-2/ does not have enough data: empty_payload
2021-12-29 06:56:03 [scrapy.extensions.logstats] INFO: Crawled 2 pages (at 2 pages/min), scraped 0 items (at 0 items/min)
2021-12-29 06:56:23 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://www.recipetineats.com/pearl-barley-soup/comment-page-1/#comments> (referer: None)
{'downloader/request_bytes': 2542,
'downloader/request_count': 10,
'downloader/request_method_count/GET': 10,
'downloader/response_bytes': 437883,
'downloader/response_count': 10,
'downloader/response_status_count/200': 10,
'dupefilter/filtered': 51,
'elapsed_time_seconds': 349.663701,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2021, 12, 28, 23, 0, 52, 669646),
'httpcompression/response_bytes': 2248456,
'httpcompression/response_count': 10,
'log_count/DEBUG': 11,
'log_count/ERROR': 9,
'log_count/INFO': 25,
No logs with this one:
2021-12-29 21:57:45 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://www.recipetineats.com/category/beef-mince-recipes/> (referer: None)
When we received a 301, we won't print any unlock or error log. related to #105