コード例 #1
0
def ajax_influenced_users():
    uid = request.args.get('uid', '')
    date = request.args.get('date', '')
    mid = request.args.get('mid', '')
    style = request.args.get('style', '')
    number = request.args.get("number", 20)
    uid = str(uid)
    mid = str(mid)
    style = int(style)
    number = int(number)

    results = detail_weibo_influence(uid, mid, style, date, number)

    return json.dumps(results)
コード例 #2
0
def ajax_influenced_users():
    uid = request.args.get('uid', '')
    date = request.args.get('date', '')
    mid = request.args.get('mid', '')
    style = request.args.get('style', '')
    number = request.args.get("number", 20)
    uid = str(uid)
    mid = str(mid)
    style = int(style)
    number = int(number)

    results = detail_weibo_influence(uid, mid, style, date, number)

    return json.dumps(results)
コード例 #3
0
ファイル: views.py プロジェクト: huxiaoqian/user_portrait
def ajax_influenced_users():
    uid = request.args.get("uid", "")
    date = request.args.get("date", "")
    mid = request.args.get("mid", "")
    style = request.args.get("style", "")
    number = request.args.get("number", 20)
    uid = str(uid)
    date = str(date).replace("/", "-")
    mid = str(mid)
    style = int(style)
    number = int(number)

    results = detail_weibo_influence(uid, mid, style, date, number)

    return json.dumps(results)