Esempio n. 1
0
 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
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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
Esempio n. 5
0
 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')