This commit is contained in:
Ionel Andrei Cataon
2026-02-12 16:36:00 +02:00
parent 77604629d6
commit 04f2f26561
2 changed files with 19 additions and 13 deletions

View File

@@ -12,10 +12,10 @@ def get_quote():
quote = data.get('content') or data.get('advice') or data.get('q') or "Citatul nu a putut fi găsit."
author = data.get('author') or data.get('a') or "Autor necunoscut"
print("-" * 30)
print(f"CITAT: {quote}")
print(f"AUTOR: {author}")
print("-" * 30)
with open("quote.txt", "w") as f:
f.write(f"📜 *\"{quote}\"* \n\n✍️ **{author}**")
except Exception as e:
print(f"Eroare la apelarea API-ului: {e}")
sys.exit(1)