コード例 #1
0
def ajax_get_top_weibo():
    uid = request.args.get('uid', '')
    date = request.args.get('date', '')
    style = request.args.get("style", 0)
    uid = str(uid)
    date = str(date).replace('/', '-')

    results = influenced_detail(uid, date, style)

    return json.dumps(results)
コード例 #2
0
def ajax_get_top_weibo():
    uid = request.args.get('uid', '')
    date = request.args.get('date', '')
    style = request.args.get("style", 0)
    uid = str(uid)
    date = str(date).replace('/', '-')

    results = influenced_detail(uid, date, style)

    return json.dumps(results)
コード例 #3
0
def ajax_get_top_weibo():
    uid = request.args.get('uid', '')
    date = request.args.get('date', '')
    style = request.args.get("style", 0) # 1:origin, 2:retweet, 3:comment
    order = request.args.get("order", 1) # 1:sensitive, 2:retweet, 3:comment, 4:ts
    uid = str(uid)
    order = int(order)
    results = influenced_detail(uid, date, style, order)

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

    results = influenced_detail(uid, date, style)

    return json.dumps(results)
コード例 #5
0
def ajax_get_top_weibo():
    uid = request.args.get('uid', '')
    date = request.args.get('date', '')
    style = request.args.get("style", 0)  # 1:origin, 2:retweet, 3:comment
    order = request.args.get("order",
                             1)  # 1:sensitive, 2:retweet, 3:comment, 4:ts
    uid = str(uid)
    order = int(order)
    results = influenced_detail(uid, date, style, order)

    return json.dumps(results)