MCPcopy Create free account
hub / github.com/Boris-code/feapder / record_download_status

Method record_download_status

feapder/core/parser_control.py:424–430  ·  view source on GitHub ↗

记录html等文档下载状态 @return:

(self, status, spider)

Source from the content-addressed store, hash-verified

422 time.sleep(setting.SPIDER_SLEEP_TIME)
423
424 def record_download_status(self, status, spider):
425 """
426 记录html等文档下载状态
427 @return:
428 """
429
430 metrics.emit_counter(f"{spider}:{status}", 1, classify="document")
431
432 def stop(self):
433 self._thread_stop = True

Callers 2

deal_requestMethod · 0.95
deal_requestMethod · 0.80

Calls 1

emit_counterMethod · 0.80

Tested by

no test coverage detected