MCPcopy
hub / github.com/jhao104/proxy_pool / get

Method get

handler/proxyHandler.py:29–37  ·  view source on GitHub ↗

return a proxy Args: https: True/False Returns:

(self, https=False)

Source from the content-addressed store, hash-verified

27 self.db.changeTable(self.conf.tableName)
28
29 def get(self, https=False):
30 """
31 return a proxy
32 Args:
33 https: True/False
34 Returns:
35 """
36 proxy = self.db.get(https)
37 return Proxy.createFromJson(proxy) if proxy else None
38
39 def pop(self, https):
40 """

Callers 6

regionGetterMethod · 0.45
runMethod · 0.45
__runProxyCheckFunction · 0.45
createFromJsonMethod · 0.45
serverHostMethod · 0.45
serverPortMethod · 0.45

Calls 1

createFromJsonMethod · 0.80

Tested by

no test coverage detected