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

Method create_store

store/xhs/__init__.py:47–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46 @staticmethod
47 def create_store() -> AbstractStore:
48 store_class = XhsStoreFactory.STORES.get(config.SAVE_DATA_OPTION)
49 if not store_class:
50 raise ValueError("[XhsStoreFactory.create_store] Invalid save option only supported csv or db or json or sqlite or mongodb or excel ...")
51 return store_class()
52
53
54def get_video_url_arr(note_item: Dict) -> List:

Callers 10

update_xhs_noteFunction · 0.45
update_xhs_note_commentFunction · 0.45
test_create_csv_storeMethod · 0.45
test_create_db_storeMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 8

test_create_csv_storeMethod · 0.36
test_create_db_storeMethod · 0.36