mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-03-05 05:30:45 +08:00
升级 httpx 版本至 0.28.1,并修改关键字参数 proxies 至 proxy
This commit is contained in:
@@ -32,7 +32,7 @@ class IpGetError(Exception):
|
||||
|
||||
class ProxyProvider(ABC):
|
||||
@abstractmethod
|
||||
async def get_proxies(self, num: int) -> List[IpInfoModel]:
|
||||
async def get_proxy(self, num: int) -> List[IpInfoModel]:
|
||||
"""
|
||||
获取 IP 的抽象方法,不同的 HTTP 代理商需要实现该方法
|
||||
:param num: 提取的 IP 数量
|
||||
|
||||
Reference in New Issue
Block a user