返回代理数量 :return:
(self)
| 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 | """ |