Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8d82f4a4
authored
Sep 29, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add attr
parent
b862635f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
update_jd_attr.py
update_jd_attr.py
View file @
8d82f4a4
...
...
@@ -41,7 +41,7 @@ def insert_class_of_attr(class_id: int):
app_secret
=
app_secret
,
param
=
{
"category_leaf_id"
:
class_id
}
)
#
print(json.dumps(data, ensure_ascii=False))
print
(
json
.
dumps
(
data
,
ensure_ascii
=
False
))
if
"result"
not
in
data
[
"jingdong_vc_item_props_find_responce"
][
"jos_result_dto"
]:
return
results
=
data
[
"jingdong_vc_item_props_find_responce"
][
"jos_result_dto"
][
"result"
]
...
...
@@ -136,8 +136,9 @@ def insert_class_of_ext_attr(class_id: int):
if
__name__
==
'__main__'
:
class_ids
=
get_class_ids
()
for
i
in
range
(
len
(
class_ids
)):
class_id
=
class_ids
[
i
]
insert_class_of_attr
(
class_id
)
insert_class_of_ext_attr
(
class_id
)
\ No newline at end of file
# class_ids = get_class_ids()
# for i in range(len(class_ids)):
# class_id = class_ids[i]
# insert_class_of_attr(class_id)
# insert_class_of_ext_attr(class_id)
insert_class_of_attr
(
15818
)
\ No newline at end of file
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