MediaCrawler/proxy/providers/kuaidl_proxy.py

22 lines
527 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- 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()