def __init__(self, name='default', browser_type=DEFAULT_BROWSER): """ :param name: :param browser: None """ self.name = name self.cookies_db = CookiesRedisClient(name=self.name) self.account_db = AccountRedisClient(name=self.name) self.browser_type = browser_type
def __init__(self, name='default', browser_type=DEFAULT_BROWSER): """ 父类, 初始化一些对象 :param name: 名称 :param browser: 浏览器, 若不使用浏览器则可设置为 None """ self.name = name self.cookies_db = CookiesRedisClient(name=self.name) self.account_db = AccountRedisClient(name=self.name) self.browser_type = browser_type
def __init__(self, name='default'): self.name = name self.cookies_db = CookiesRedisClient(name=self.name) self.account_db = AccountRedisClient(name=self.name)