+3111
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,15 @@
|
|||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
f=open("database/switch_1687967369.json",'r',encoding='utf8')
|
f=open("database/switch_1688182997.json",'r',encoding='utf8')
|
||||||
|
|
||||||
|
|
||||||
jsdata=json.loads(f.read())
|
jsdata=json.loads(f.read())
|
||||||
#https://images.cube.mo/items/4131cube_41312023-01-20-17-10-35888.png
|
#https://images.cube.mo/items/4131cube_41312023-01-20-17-10-35888.png
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
js2={}
|
||||||
|
a=0
|
||||||
for i in jsdata['item_list']:
|
for i in jsdata['item_list']:
|
||||||
print(i['item_name'])
|
print(i['item_name'])
|
||||||
print("SUK: "+i['item_no'])
|
print("SUK: "+i['item_no'])
|
||||||
@@ -15,3 +19,23 @@ for i in jsdata['item_list']:
|
|||||||
print("参考库存:"+stock)
|
print("参考库存:"+stock)
|
||||||
print(i['main_photo'])
|
print(i['main_photo'])
|
||||||
print()
|
print()
|
||||||
|
js={}
|
||||||
|
js['tempname']=i['item_name']
|
||||||
|
js['type']="NS"
|
||||||
|
js['SUK']=i['item_no']
|
||||||
|
js['salestart']=i['salestart']
|
||||||
|
|
||||||
|
js['ZH']=" "
|
||||||
|
js['EN']=" "
|
||||||
|
js['JP']=" "
|
||||||
|
js['TAG1']=" "
|
||||||
|
js['TAG2']=" "
|
||||||
|
js['TAG3']=" "
|
||||||
|
js2[a]=js
|
||||||
|
a+=1
|
||||||
|
|
||||||
|
|
||||||
|
jsdump=json.dumps(js2,ensure_ascii=False, indent=4, separators=(',', ': '))
|
||||||
|
f=open("database/NS_temp.json","w",encoding='utf8')
|
||||||
|
f.write(jsdump)
|
||||||
|
f.close
|
||||||
|
|||||||
Reference in New Issue
Block a user