| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- import requests
- import json
- # url = "http://172.18.1.189:7860/brandanalysis/api/v1/keyword"
- # payload = {
- # "brand_name": "李宁",
- # "shop_detail_info_brand_name": "李宇",
- # "title": "休闲运动短袖T恤速干男子跑步健身圆领半袖上衣",
- # }
- # headers = {'Content-Type': 'application/json'}
- # response = requests.post(url, data=json.dumps(payload), headers=headers)
- # print(response.json())
- # url = "http://172.18.1.189:7860/brandanalysis/api/v1/license"
- # payload = {
- # "brand_name": "李宁",
- # "title": "李宁烈骏7 PRO V2男子䨻丝高回弹缓震稳定跑鞋",
- # }
- # headers = {'Content-Type': 'application/json'}
- # response = requests.post(url, data=json.dumps(payload), headers=headers)
- # print(response.json())
- # url = "https://670813644644357-http-7860.northwest1.gpugeek.com:8443/brandanalysis/api/v1/logo"
- # payload = {
- # "brand_name": "李宁",
- # "image_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2024/12/13/131/82a925f9-14af-4be3-bf78-3262f7909482.jpg",
- # }
- # headers = {'Content-Type': 'application/json'}
- # response = requests.post(url, data=json.dumps(payload), headers=headers)
- # print(response.json())
- # url = "https://670813644644357-http-7860.northwest1.gpugeek.com:8443/brandanalysis/api/v1/infringe_judgement"
- url = "http://172.18.1.189:7860/brandanalysis/api/v1/infringe_judgement"
- url_data = {
- 'title': '李宁云缓震跑步鞋男鞋2025新款春夏季网面透气休闲运动鞋男慢跑鞋',
- 'brand_name': '李宁',
- 'product_images': [
- "https://gw.alicdn.com/imgextra/O1CN01rMR0141uTSU983635_!!2145866038.jpg_q95.jpg_.webp",
- "https://img.alicdn.com/imgextra/i4/2145866038/O1CN01ZM1xNI1uTSTGvavrL_!!2145866038.jpg_q75.jpg_.webp",
- "https://img.alicdn.com/imgextra/i4/2145866038/O1CN01QaaAgt1uTSTFOdQGD_!!2145866038.jpg_q75.jpg_.webp",
- "https://img.alicdn.com/imgextra/i4/2145866038/O1CN01dPZcPe1uTSSEBeiwS_!!2145866038.jpg_q75.jpg_.webp",
- "https://img.alicdn.com/imgextra/i3/2145866038/O1CN018tszjT1uTSNbo83rm_!!2145866038.jpg_q75.jpg_.webp",
- "https://img.alicdn.com/imgextra/i3/2145866038/O1CN017JGmX21uTSPqUQmQ8_!!2145866038.jpg_q75.jpg_.webp"
- ],
- 'price': 19.9
- }
- basic_data = {
- 'product_name': '25李宁赤兔8PRO蛇年跑步鞋男回弹减震透气竞速训练专业比赛运动鞋',
- 'brand_name': '李宁',
- 'similarity_logos': ["李宇", "李I宁"],
- 'product_images': [
- "https://gw.alicdn.com/imgextra/O1CN01EFpxoy1JdrhyyD8Gp_!!3378851052.jpg_q95.jpg_.webp",
- "https://img.alicdn.com/imgextra/i2/3378851052/O1CN01N1VBKz1JdriDQ7v3s_!!3378851052.jpg_q75.jpg_.webp",
- "https://img.alicdn.com/imgextra/i4/3378851052/O1CN01d1T16h1JdriBxQW8j_!!3378851052.jpg_q75.jpg_.webp",
- "https://img.alicdn.com/imgextra/i4/3378851052/O1CN01O5Gb861JdriAyGLo0_!!3378851052.jpg_q75.jpg_.webp",
- "https://img.alicdn.com/imgextra/i1/3378851052/O1CN01WT8Kg81JdriDTZ4lq_!!3378851052.jpg_q75.jpg_.webp",
- "https://img.alicdn.com/imgextra/i2/3378851052/O1CN01v4KL0D1JdriCrG3SH_!!3378851052.jpg_q75.jpg_.webp"
- ],
- 'base_price': 0,
- 'price_percent': 0
-
- }
- payload = {
- 'url_data': url_data,
- 'basic_data': basic_data,
- 'judgement_type': [1]
- }
- headers = {'Content-Type': 'application/json'}
- response = requests.post(url, data=json.dumps(payload), headers=headers)
- print(response.json())
|