init xiaoxiang project
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import json
|
||||
|
||||
import newsetting
|
||||
|
||||
tent = newsetting.All_Setting('183.6.7.91',33016,'tk_test')
|
||||
|
||||
sql = """
|
||||
select * from category_detail_log where created_at > '2026-3-29'
|
||||
"""
|
||||
|
||||
a1 = tent.get_shoppingmalls(sql)
|
||||
for index,b in enumerate(a1):
|
||||
with open(f'./down/data_{index}.json','w',encoding='utf-8') as f:
|
||||
f.write(str(b))
|
||||
|
||||
Reference in New Issue
Block a user