MediaCrawler/proxy/providers/kuaidl_proxy.py

22 lines
527 B
Python
Raw Normal View History

2024-04-05 02:44:05 +00:00
# -*- coding: utf-8 -*-
# @Author : relakkes@gmail.com
# @Time : 2024/4/5 09:43
# @Desc : 快代理HTTP实现官方文档https://www.kuaidaili.com/?ref=ldwkjqipvz6c
from typing import Dict, List
from proxy import IpGetError, IpInfoModel, ProxyProvider, RedisDbIpCache
class KuaiDaiLiProxy(ProxyProvider):
async def get_proxies(self, num: int) -> List[Dict]:
pass
def new_kuai_daili_proxy() -> KuaiDaiLiProxy:
"""
构造快代理HTTP实例
Returns:
"""
return KuaiDaiLiProxy()