Esempio n. 1
0
def init_comments():
    '''从weibo.com抓取评论'''
    client = WeiboService.get_active_client()
    if type(client) == dict:
        redirect(client['url'])
    return WeiboService.get_comments(client)
Esempio n. 2
0
def init_comments():
    '''从weibo.com抓取评论'''
    client = WeiboService.get_active_client()
    if type(client)==dict:
        redirect(client['url'])
    return WeiboService.get_comments(client)
Esempio n. 3
0
def weibo_callback():
    '''微博callback'''
    r = WeiboService.get_token()
    return r.access_token
Esempio n. 4
0
def weibo_callback():
    '''微博callback'''
    r = WeiboService.get_token()
    return r.access_token