def _runProxyCheck(): proxy_queue = Queue() proxy_handler = ProxyHandler() if proxy_handler.db.getCount() < proxy_handler.conf.poolSizeMin: _runProxyFetch() else: for proxy in proxy_handler.getAll(): proxy_queue.put(proxy.to_json) runChecker("use", proxy_queue)
def __runProxyCheck(): proxy_handler = ProxyHandler() proxy_queue = Queue() if proxy_handler.db.getCount().get("total", 0) < proxy_handler.conf.poolSizeMin: __runProxyFetch() for proxy in proxy_handler.getAll(): proxy_queue.put(proxy) Checker("use", proxy_queue)