@@ -1,11 +1,15 @@
|
||||
import json
|
||||
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())
|
||||
#https://images.cube.mo/items/4131cube_41312023-01-20-17-10-35888.png
|
||||
|
||||
|
||||
|
||||
js2={}
|
||||
a=0
|
||||
for i in jsdata['item_list']:
|
||||
print(i['item_name'])
|
||||
print("SUK: "+i['item_no'])
|
||||
@@ -15,3 +19,23 @@ for i in jsdata['item_list']:
|
||||
print("参考库存:"+stock)
|
||||
print(i['main_photo'])
|
||||
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