it can download the image file

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2023-06-29 20:59:18 +08:00
commit 960948bf3e
3 changed files with 101 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import json
import re
f=open("database/switch_1687967369.json",'r',encoding='utf8')
jsdata=json.loads(f.read())
#https://images.cube.mo/items/4131cube_41312023-01-20-17-10-35888.png
for i in jsdata['item_list']:
print(i['item_name'])
print("SUK: "+i['item_no'])
print(i['nowprice']+"MOP")
print("发售日期:"+i['salestart'])
stock=re.findall("[0-9]+",i['stock_text'])[0]
print("参考库存:"+stock)
print(i['main_photo'])
print()