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

Function get_count

proxypool/processors/server.py:156–163  ·  view source on GitHub ↗

get the count of proxies :return: count, int

()

Source from the content-addressed store, hash-verified

154@app.route('/count')
155@auth_required
156def get_count():
157 """
158 get the count of proxies
159 :return: count, int
160 """
161 conn = get_conn()
162 key = get_request_key()
163 return str(conn.count(key)) if key else str(conn.count())
164
165
166if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

get_connFunction · 0.85
get_request_keyFunction · 0.85
countMethod · 0.80

Tested by

no test coverage detected