Commit 021ab4cc authored by 张彦钊's avatar 张彦钊

修改es tag统计脚本

parent 6866b444
# -*- coding: utf-8 -*-
import json
import requests
url="http://doris.paas.test/v1/once"
header_dict={'Content-Type': 'application/x-www-form-urlencoded'}
param_dict={}
param_dict["method"]="doris/search/skin_ai_total_content"
a = [105, 2941, 780, 102, 873, 2060, 187, 2935, 2108, 912, 928, 2059, 4437, 822, 2866, 2778, 824, 821, 2938]
b = [775, 2939, 789, 98, 872, 3042, 1890, 5074, 118, 811, 117, 92, 897, 152, 127, 126, 125, 123, 88, 115, 806]
c = [796, 234, 233, 232, 797, 116, 236, 986, 1370, 87, 2923, 86, 85, 89, 253, 798, 810, 153, 864, 863, 151, 777, 2056]
# [list(range(3000)),list(range(3000,6000)),list(range(6000,10000))]
param_detail = {
"has_order": False,
"tag_list": [list(range(10000))],
"in_whitelist": False,
"user_city_tag_id": 328,
"device_id": "8"
}
param_dict["params"]=json.dumps(param_detail)
a = requests.post(url=url,data=param_dict,headers=header_dict)
print(a.content)
# 09FEDF48-82CF-4205-994C-9AAAA2D5DD08
\ No newline at end of file
# -*- coding: utf-8 -*-
import json
import requests
url="http://doris.paas.test/v1/once"
header_dict={'Content-Type': 'application/x-www-form-urlencoded'}
param_dict={}
param_dict["method"]="doris/recommend/views/new_media_check_in"
param_detail = {
"device_id": "ddddd",
"user_city_tag_id": 328,
"size": "6"
}
param_dict["params"]=json.dumps(param_detail)
a = requests.post(url=url,data=param_dict,headers=header_dict)
print(a.content)
# 09FEDF48-82CF-4205-994C-9AAAA2D5DD08
\ No newline at end of file
......@@ -1116,9 +1116,13 @@ def test_topic():
if __name__ == "__main__":
test_topic()
topic()
print("topic ok")
question()
print("ques ok")
answer()
print("answer ok")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment