10 lines
380 B
Python
10 lines
380 B
Python
from domain.entities import Alert
|
|
from ports.outbound.notifier_protocol import Notifier
|
|
|
|
class CliNotifierAdapter(Notifier):
|
|
def send_alert(self, alert: Alert) -> None:
|
|
print("-" * 30)
|
|
print(f"Mots-clefs : {alert.matched_keywords}")
|
|
print(f"Titre : {alert.article.title}")
|
|
print(f"Lien : {alert.article.url}")
|
|
print("-" * 30) |