MCPcopy Index your code
hub / github.com/jhao104/proxy_pool / getCount

Method getCount

db/ssdbClient.py:125–131  ·  view source on GitHub ↗

返回代理数量 :return:

(self)

Source from the content-addressed store, hash-verified

123 return self.__conn.delete(self.name)
124
125 def getCount(self):
126 """
127 返回代理数量
128 :return:
129 """
130 proxies = self.getAll(https=False)
131 return {'total': len(proxies), 'https': len(list(filter(lambda x: json.loads(x).get("https"), proxies)))}
132
133 def changeTable(self, name):
134 """

Callers 1

testMethod · 0.95

Calls 2

getAllMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected