Notifications Module

Notification module - sends email/SMS alerts for new jobs.

NotificationConfig

class modules.notifications.NotificationConfig(smtp_host: str = 'smtp.gmail.com', smtp_port: int = 587, sender_email: str = '', sender_password: str = '', recipient_email: str = '', twilio_sid: str = '', twilio_token: str = '', twilio_phone: str = '', recipient_phone: str = '')[source]

Bases: object

Email/SMS configuration.

recipient_email: str = ''
recipient_phone: str = ''
sender_email: str = ''
sender_password: str = ''
smtp_host: str = 'smtp.gmail.com'
smtp_port: int = 587
twilio_phone: str = ''
twilio_sid: str = ''
twilio_token: str = ''

NotificationService

class modules.notifications.NotificationService(config: NotificationConfig | None = None)[source]

Bases: object

Sends notifications for new job listings.

notify_new_jobs(jobs: list) None[source]

Notify about new job listings.

send_email(subject: str, body: str) bool[source]

Send email notification.

send_sms(message: str) bool[source]

Send SMS notification via Twilio.