def symbol_weibos(): topic = request.args.get('topic', '') during = request.args.get('pointInterval', 60 * 60) # 默认查询时间粒度为3600秒 during = int(during) end_ts = request.args.get('end_ts', '') end_ts = long(end_ts) start_ts = request.args.get('start_ts', '') start_ts = long(start_ts) weibo_content = get_symbol_weibo(topic, start_ts, end_ts, during) return json.dumps(weibo_content)
def symbol_weibos(): topic = request.args.get('topic','') during = request.args.get('pointInterval',60*60) # 默认查询时间粒度为3600秒 during = int(during) end_ts = request.args.get('end_ts', '') end_ts = long(end_ts) start_ts = request.args.get('start_ts', '') start_ts = long(start_ts) weibo_content = get_symbol_weibo(topic,start_ts,end_ts,during) return json.dumps(weibo_content)