def __init__(self, host, port, api_key, per_token_hours_limit, buffer_size): r = _default_redis(host, port) self.req_count = _default_req_count(r, api_key=api_key) self.tk_alive = _default_tk_alive(r, api_key=api_key) self.per_token_hours_limit = per_token_hours_limit self.buffer_size = buffer_size
def __init__(self, host, port, api_key): r = _default_redis(host, port) self.req_count = _default_req_count(r, api_key=api_key) self.tk_alive = _default_tk_alive(r, api_key=api_key)
def __init__(self, host, port, api_key): r = _default_redis(host, port) self.req_count = _default_req_count(r, api_key=api_key) self.tk_alive = _default_tk_alive(r, api_key=api_key) self.users_not_exist = _default_not_exist_users(r, 'user_info_spider')