

def login_hook(opener, **kw):
    username = kw['username']
    passwd = kw['password']
    loginer = WeiboLogin(opener, username, passwd)
    return loginer.login()

dataset/ETHPy150Open chineking/cola/lab/weibosearch/__init__.py login_hook/original