Optimized file allocation

This commit is contained in:
ldy 2023-09-26 23:37:43 +08:00
parent f45c63fa8c
commit ef9ab9abb1
21 changed files with 2 additions and 2 deletions

View File

@ -44,10 +44,10 @@ def Scrawl(Link):
# 放入json文件暂存小文件 # 放入json文件暂存小文件
if Article_data: if Article_data:
index = str(uuid.uuid4()) index = str(uuid.uuid4())
SD_save.save_data(Article_data, "Article_TS", index + ".json") SD_save.save_data(Article_data, "Article_TS", index + ".json")
print('Finished: ' + index + ' has been added to ./SpringerOpen_buffer/Article_TS/') print('Finished: ' + index + ' has been added to ./SpringerOpen_buffer/Article_TS/')
if Author_data: if Author_data:
index = str(uuid.uuid4()) index = str(uuid.uuid4())
SD_save.save_data(Author_data, "Author_TS", index + ".json") SD_save.save_data(Author_data, "Author_TS", index + ".json")
print('Finished: ' + index + ' has been added to ./SpringerOpen_buffer/Author_TS/') print('Finished: ' + index + ' has been added to ./SpringerOpen_buffer/Author_TS/')