()
| 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 | |
| 54 | def get_video_url_arr(note_item: Dict) -> List: |