Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
crawler
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
backend
crawler
Commits
3ff3e41b
Commit
3ff3e41b
authored
4 years ago
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
70e7b5d6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
temp_doris_to_redis.py
test/temp_doris_to_redis.py
+2
-2
temp_service_to_redis.py
test/temp_service_to_redis.py
+2
-2
No files found.
test/temp_doris_to_redis.py
View file @
3ff3e41b
...
...
@@ -875,8 +875,8 @@ for city in city_list:
for
query
in
query_list
:
try
:
# if True:
if
rds
.
hexists
(
city
,
query
):
continue
#
if rds.hexists(city,query):
#
continue
data
=
{
'requests'
:
'[{
\"
request_id
\"
: null,
\"
method
\"
:
\"
doris/search/query_sku
\"
,
\"
params
\"
: {
\"
sort_with_submission
\"
: true,
\"
or_filters
\"
: [],
\"
sort_params
\"
: {
\"
in_whitelist
\"
: 1,
\"
user_city_tag_id
\"
:
%
s,
\"
device_id
\"
:
\"
androidid_ba0799595f555c98
\"
},
\"
sort_type
\"
: 0,
\"
use_tagv3
\"
: false,
\"
filters
\"
: {
\"
tag_ids
\"
: [
%
s]},
\"
offset
\"
: 0,
\"
query
\"
:
\"\"
,
\"
is_sort_with_icon
\"
: true,
\"
user_city_tag_id
\"
:
%
s,
\"
size
\"
: 100},
\"
environment
\"
: {
\"
trace_context
\"
: {
\"
debug
\"
: false,
\"
sampled
\"
: false,
\"
trace_id
\"
:
\"
1abd5ea122024a32827e0a0dd8ad45eb
\"
,
\"
span_id
\"
:
\"
0.2
\"
},
\"
l5d_path
\"
:
\"
/prod/gaia
\"
,
\"
passport
\"
: null,
\"
client_info
\"
: {
\"
log_id
\"
:
\"
gaia.z1l7e4odb43efc0179047f890fc023ba
\"
,
\"
span_id
\"
:
\"
z1l7e4o0ffec82d12944357b60360e80
\"
},
\"
session_id
\"
:
\"
ifop8w1o4spoe969kxd6yh77wzgtsz3c
\"
}}]'
%
(
city_list
[
city
],
query_list
[
query
],
city_list
[
city
])}
...
...
This diff is collapsed.
Click to expand it.
test/temp_service_to_redis.py
View file @
3ff3e41b
...
...
@@ -1501,8 +1501,8 @@ for query in query_list:
for
city
in
city_list
:
try
:
key
=
"meigou_"
+
city
+
"_"
+
query
if
rds
.
exists
(
key
):
continue
#
if rds.exists(key):
#
continue
data
=
{
'requests'
:
'[{"method": "rims/search/cpt_service", "params": {"sort_with_submission": true, '
'"city_id": "
%
s", "is_feed": false, "sort_type": 0, "sort_params": {"query":
%
s,'
...
...
This diff is collapsed.
Click to expand it.
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