- Run the script and enter the UFC event number (or leave blank for today's Fight Night).
- The full fight card loads โ use the arrow-key selector to pick one or more fights.
- Choose how to receive alerts: SMS, Email, or both.
- The program monitors the live event and sends you 3 alerts per fight when it's about to start, spaced 2 minutes apart:
| Alert | Timing | Message |
|---|---|---|
| 1/3 | Fight before yours just ended | "Your fight is up next!" |
| 2/3 | +2 min | "Starting very soon!" |
| 3/3 | +4 min | "IT'S TIME โ turn it on!" |
- The program exits automatically once all selected fights have sent their 3 alerts.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โโโโโโโโ โโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโ โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโ โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโ โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโ โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโ โโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Welcome to UFC Fight Notifier โ
โ โ
โ Select one or more fights to track. โ
โ For each fight you'll receive 3 SMS alerts when it's about โ
โ to start, 2 minutes apart. โ
โ โ
โ Press Space to select ยท Enter to confirm ยท Ctrl+C to quit โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Setup โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event number (): 323
โ Event found (ID: 1293)
โ Loading fight card...
? Select the fight(s) you want to be notified about:
โฏ โ โ
Merab Dvalishvili vs Petr Yan โ MAIN EVENT [Main]
โฏ 2. Sean Strickland vs Dricus du Plessis [Main]
โ 3. Brandon Moreno vs Amir Albazi [Main]
โฏ 4. Sergei Pavlovich vs Tai Tuivasa [Prelim]
โฏ 5. Joaquin Buckley vs Vicente Luque [Prelim]
โฏ 6. Jailton Almeida vs Curtis Blaydes [Prelim]
? How do you want to receive alerts?
โฏ โ SMS (Twilio)
โฏ Email (Gmail)
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ... UFC logo ... โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ UFC 323: Dvalishvili vs Yan โ โ Alerts 3/6 โ
โ T-Mobile Arena, Las Vegas โ โ โ
โ December 6, 2025 โ โ โโโ next in 1m 43s #3 Moreno โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โ โโโ waiting... #1 Main โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโ Fight Card ยท tracking 2 fight(s) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ # Segment Red Corner vs Blue Corner Status Result / Live Info โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โบ 1 Main Merab Dvalishvili vs Petr Yan โฆ Upcoming โ
โ 2 Main Sean Strickland vs Dricus du Plessis โฆ Upcoming โ
โ โบ 3 Main Brandon Moreno vs Amir Albazi โ Live Round 2 โ 3:45 โ
โ 4 Prelim Sergei Pavlovich vs Tai Tuivasa โ Final Pavlovich ยท KO R1โ
โ 5 Prelim Joaquin Buckley vs Vicente Luque โ Final Buckley ยท UD R3 โ
โ 6 Prelim Jailton Almeida vs Curtis Blaydes โ Final Almeida ยท Sub R2 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Last updated: 22:14:38 ยท Press Ctrl+C to exit
Next refresh in 47s...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ All done โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โญโ Notification summary โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Brandon Moreno vs Amir Albazi (fight #3) โ
โ โ [22:03:11] Alert 1/3 โ
โ โ [22:05:11] Alert 2/3 โ
โ โ [22:07:12] Alert 3/3 โ
โ โ
โ Merab Dvalishvili vs Petr Yan (fight #1) โ
โ โ [23:41:05] Alert 1/3 โ
โ โ [23:43:06] Alert 2/3 โ
โ โ [23:45:07] Alert 3/3 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
- Python 3.10+
- For SMS โ a Twilio account with an Account SID, Auth Token, and Messaging Service SID
- For Email โ a Gmail account with an App Password enabled
git clone https://github.com/garantf/UFC-Notifier.git
cd UFC-Notifier
pip install -r requirements.txtCopy the credentials template and fill in your values:
cp creds.example.py creds.pyEdit creds.py:
# Twilio โ for SMS
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
auth_token = 'your_auth_token'
messaging_service_sid = 'MGxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
phone_receiver = '+15140000000' # E.164 format
# Gmail โ for Email
email_user = 'your_gmail@gmail.com'
email_password2 = 'your_16_char_app_password'
email_receiver = 'receiver@example.com' # or number@txt.bell.ca for email-to-SMSpython3 main.py| Prompt | Description |
|---|---|
| Event number | Leave blank for today's Fight Night, or enter a number (300 for UFC 300) or a slug (fight-night-march-22-2025) |
| Fight selection | โ / โ to navigate, Space to check/uncheck, Enter to confirm |
| Alert method | Choose SMS, Email, or both โ Space to toggle, Enter to confirm |
All tunable constants live at the top of main.py:
| Constant | Default | Description |
|---|---|---|
POLL_INTERVAL |
60 |
Seconds between live API refreshes |
NOTIF_GAP_SECONDS |
120 |
Seconds between each of the 3 alerts |
NOTIFS_PER_FIGHT |
3 |
Number of alerts per fight |
MAX_CONSECUTIVE_ERRORS |
5 |
API failures tolerated before exiting |
| Package | Purpose |
|---|---|
requests |
HTTP calls to the UFC live API |
beautifulsoup4 |
Scrapes the event page to find the fight ID |
twilio |
Sends SMS notifications |
rich |
Terminal UI โ tables, panels, colors |
questionary |
Interactive arrow-key fight & method selector |
smtplib (stdlib) |
Sends email notifications via Gmail SMTP |
creds.py is in .gitignore and will never be committed. Use creds.example.py as the reference template. Never hardcode credentials in main.py.
MIT ยฉ garantf
