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)
| 42 | class 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 |
no outgoing calls