feat: 代理IP缓存到redis中

This commit is contained in:
Relakkes
2023-12-06 23:49:56 +08:00
parent f71d086464
commit c530bd4219
8 changed files with 92 additions and 50 deletions

View File

@@ -4,7 +4,7 @@
# @Desc : bilibili 请求客户端
import asyncio
import json
from typing import Any, Callable, Dict, Optional, List, Tuple
from typing import Any, Callable, Dict, List, Optional, Tuple
from urllib.parse import urlencode
import httpx
@@ -12,9 +12,9 @@ from playwright.async_api import BrowserContext, Page
from tools import utils
from .help import BilibiliSign
from .exception import DataFetchError
from .field import SearchOrderType, CommentOrderType
from .field import CommentOrderType, SearchOrderType
from .help import BilibiliSign
class BilibiliClient: