def __init__(self): ProcesserBase.__init__(self) self.rdb3 = redis.Redis(host='122.192.66.45', db=3) # 查询远程图片信息的thrift客户端 self.remoteImagedb = imagedb() # 推送索引 self.ipusher = pusher()
def __init__(self): ProcesserBase.__init__(self) # 远程图片队列 redis_host = '122.192.66.45' redis_port = 6379 self.server_img = redis.Redis(redis_host, redis_port, 1) self.server_img3 = redis.Redis(redis_host, redis_port, 3) conn229 = pymongo.Connection('192.168.2.229',2291) self.db = conn229['dcrawler_final'] # 查询远程图片信息的thrift客户端 self.remoteImagedb = imagedb()
def __init__(self): ProcesserBase.__init__(self) # 远程图片队列 redis_host = '122.192.66.45' redis_port = 6379 self.server_img = redis.Redis(redis_host, redis_port, 1) self.server_img3 = redis.Redis(redis_host, redis_port, 3) conn229 = pymongo.Connection('192.168.2.229', 2291) self.db = conn229['dcrawler_final'] # 查询远程图片信息的thrift客户端 self.remoteImagedb = imagedb()