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
d1f077e3
authored
Oct 29, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add test2
parent
da46fb50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
test2.py
test2.py
View file @
d1f077e3
...
@@ -3,19 +3,34 @@ import json
...
@@ -3,19 +3,34 @@ import json
from
common
import
request_to_jd_vc
from
common
import
request_to_jd_vc
if
__name__
==
'__main__'
:
# 请求京东平台 获取分类下的属性(vc接口)
def
main2
():
method_name
=
"jingdong.vc.item.
p
rops.find"
method_name
=
"jingdong.vc.item.
extP
rops.find"
token
=
"845ce8478b074103b9e78a769d5fa4831y2u"
token
=
"845ce8478b074103b9e78a769d5fa4831y2u"
app_key
=
"CA52430E90209F51D8F5D7B615DDE9AD"
app_key
=
"CA52430E90209F51D8F5D7B615DDE9AD"
app_secret
=
"c92691b2379c48de87e699c4c2f7fb32"
app_secret
=
"c92691b2379c48de87e699c4c2f7fb32"
class_id
=
14140
param
=
{
param
=
{
"category_leaf_id"
:
14119
"category_leaf_id"
:
class_id
,
}
}
ans
=
request_to_jd_vc
(
method_name
=
method_name
,
token
=
token
,
app_key
=
app_key
,
app_secret
=
app_secret
,
param
=
param
)
ans
=
request_to_jd_vc
(
method_name
,
token
,
app_key
,
app_secret
,
param
)
print
(
json
.
dumps
(
ans
,
ensure_ascii
=
False
))
print
(
json
.
dumps
(
ans
,
ensure_ascii
=
False
))
# if __name__ == '__main__':
# # 请求京东平台 获取分类下的属性(vc接口)
# method_name = "jingdong.vc.item.props.find"
# token = "845ce8478b074103b9e78a769d5fa4831y2u"
# app_key = "CA52430E90209F51D8F5D7B615DDE9AD"
# app_secret = "c92691b2379c48de87e699c4c2f7fb32"
# param = {
# "category_leaf_id": 14140
# }
# ans = request_to_jd_vc(method_name=method_name, token=token, app_key=app_key, app_secret=app_secret, param=param)
# print(json.dumps(ans, ensure_ascii=False))
if
__name__
==
'__main__'
:
main2
()
# {"brand_id":824064,"cid1":33465,"height":1,"intro_html":"\u003cimg src=https://img30.360buyimg.com/sku/jfs/t1/133800/28/25551/94742/62fef403E1a77f3a2/9b92597c0c26d1c8.jpg'
# {"brand_id":824064,"cid1":33465,"height":1,"intro_html":"\u003cimg src=https://img30.360buyimg.com/sku/jfs/t1/133800/28/25551/94742/62fef403E1a77f3a2/9b92597c0c26d1c8.jpg'
...
...
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