mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-06-09 03:17:25 +08:00
feat: add abstract api client to all platform
This commit is contained in:
@@ -10,6 +10,7 @@ from urllib.parse import urlencode
|
||||
import httpx
|
||||
from playwright.async_api import BrowserContext, Page
|
||||
|
||||
from base.base_crawler import AbstactApiClient
|
||||
from tools import utils
|
||||
|
||||
from .exception import DataFetchError
|
||||
@@ -17,7 +18,7 @@ from .field import CommentOrderType, SearchOrderType
|
||||
from .help import BilibiliSign
|
||||
|
||||
|
||||
class BilibiliClient:
|
||||
class BilibiliClient(AbstactApiClient):
|
||||
def __init__(
|
||||
self,
|
||||
timeout=10,
|
||||
|
||||
Reference in New Issue
Block a user