MCPcopy Index your code
hub / github.com/Python3WebSpider/ProxyPool / Proxy

Class Proxy

proxypool/schemas/proxy.py:5–24  ·  view source on GitHub ↗

proxy schema

Source from the content-addressed store, hash-verified

3
4@attrs
5class Proxy(object):
6 """
7 proxy schema
8 """
9 host = attr(type=str, default=None)
10 port = attr(type=int, default=None)
11
12 def __str__(self):
13 """
14 to string, for print
15 :return:
16 """
17 return f'{self.host}:{self.port}'
18
19 def string(self):
20 """
21 to string
22 :return: <host>:<port>
23 """
24 return self.__str__()
25
26
27if __name__ == '__main__':

Callers 15

convert_proxy_or_proxiesFunction · 0.90
_testFunction · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90

Calls

no outgoing calls

Tested by 1

_testFunction · 0.72