Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
021ab4cc
Commit
021ab4cc
authored
Nov 22, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改es tag统计脚本
parent
6866b444
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
2 deletions
+63
-2
ai_test.py
ai_test.py
+28
-0
check_in_test.py
check_in_test.py
+29
-0
es_tag.py
es_tag.py
+6
-2
No files found.
ai_test.py
0 → 100644
View file @
021ab4cc
# -*- 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
check_in_test.py
0 → 100644
View file @
021ab4cc
# -*- 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
es_tag.py
View file @
021ab4cc
...
...
@@ -1116,9 +1116,13 @@ def test_topic():
if
__name__
==
"__main__"
:
test_topic
()
topic
()
print
(
"topic ok"
)
question
()
print
(
"ques ok"
)
answer
()
print
(
"answer ok"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment