MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / __init__

Method __init__

tools/async_file_writer.py:31–35  ·  view source on GitHub ↗
(self, platform: str, crawler_type: str)

Source from the content-addressed store, hash-verified

29
30class AsyncFileWriter:
31 def __init__(self, platform: str, crawler_type: str):
32 self.lock = asyncio.Lock()
33 self.platform = platform
34 self.crawler_type = crawler_type
35 self.wordcloud_generator = AsyncWordCloudGenerator() if config.ENABLE_GET_WORDCLOUD else None
36
37 def _get_file_path(self, file_type: str, item_type: str) -> str:
38 if config.SAVE_DATA_PATH:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected