mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-04-18 12:09:42 +08:00
feature: Add a log message for every file saved
This commit is contained in:
parent
d777633b30
commit
137726ca4f
@ -91,7 +91,7 @@ def save_news_data():
|
||||
with open(filename, "w") as f:
|
||||
json.dump([item.dict() for item in news_data], f, indent=4)
|
||||
|
||||
return filename
|
||||
print(f"{datetime.now()}: Successfully saved the news data.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
@ -54,7 +54,7 @@ def save_firecrawl_news_data():
|
||||
with open(filename, "w") as f:
|
||||
json.dump(data["extract"]["news_items"], f, indent=4)
|
||||
|
||||
return filename
|
||||
print(f"{datetime.now()}: Successfully saved the news data.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
x
Reference in New Issue
Block a user