mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-03-23 04:27:33 +08:00
feat: add abstract api client to all platform
This commit is contained in:
@@ -55,3 +55,17 @@ class AbstractStore(ABC):
|
||||
# @abstractmethod
|
||||
async def store_creator(self, creator: Dict):
|
||||
pass
|
||||
|
||||
|
||||
class AbstactApiClient(ABC):
|
||||
@abstractmethod
|
||||
async def request(self, method, url, **kwargs):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
async def update_cookies(self, browser_context: BrowserContext):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
async def pong(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user