MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / get_proxy

Method get_proxy

proxy/base_proxy.py:44–50  ·  view source on GitHub ↗

Abstract method to get IP, different HTTP proxy providers need to implement this method :param num: Number of IPs to extract :return:

(self, num: int)

Source from the content-addressed store, hash-verified

42class ProxyProvider(ABC):
43 @abstractmethod
44 async def get_proxy(self, num: int) -> List[IpInfoModel]:
45 """
46 Abstract method to get IP, different HTTP proxy providers need to implement this method
47 :param num: Number of IPs to extract
48 :return:
49 """
50 raise NotImplementedError
51
52
53

Callers 13

test_ip_poolMethod · 0.45
test_ip_expirationMethod · 0.45
startMethod · 0.45
startMethod · 0.45
startMethod · 0.45
getMethod · 0.45
startMethod · 0.45
startMethod · 0.45
startMethod · 0.45

Calls

no outgoing calls