Commit 69b07be3 authored by liyang's avatar liyang

feat:调试数据入库

parent 890c6509
...@@ -150,7 +150,9 @@ def reptile(browser=None, search_word=""): ...@@ -150,7 +150,9 @@ def reptile(browser=None, search_word=""):
# upload_control() # upload_control()
# 保存json文件到本地 # 保存json文件到本地
file_dir = f'./reptile_data/ptt/{int(time.time())}.json' log.debug(os.path.abspath("./"))
file_dir = f'{os.path.abspath("./")}/reptile_data/ptt/{int(time.time())}.json'
# file_dir = f'./reptile_data/ptt/{int(time.time())}.json'
state_save = save_json(file_dir, data) state_save = save_json(file_dir, data)
log.debug("-----------------------------") log.debug("-----------------------------")
# write_to_database(data) # write_to_database(data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment