Automatically monitors a Tixr event page for resale ticket availability and sends email notifications.
- Go to GitHub.com and create a new repository
- Make it private (recommended) or public
- Upload these files to your repository
- Edit
monitor.py - Replace
YOUR_TIXR_EVENT_URL_HEREwith your actual Tixr event URL
- Go to your repository Settings → Secrets and Variables → Actions
- Add these secrets:
SENDER_EMAIL: Your Gmail address (e.g., [email protected]) SENDER_PASSWORD: Your Gmail App Password (see instructions below) RECIPIENT_EMAIL: Where to send notifications (can be same as sender)
Users can now register themselves:
- Find your bot in Telegram (search for the username you created)
- Send
/registerto the bot - Bot automatically adds them to notifications - no manual steps needed!
- Register yourself by sending
/registerto your bot - Go to Actions tab in your GitHub repository
- Click "Tixr Resale Monitor" workflow
- Click "Run workflow" to test manually
- Check the logs to see if it's working
- Runs automatically every 15 minutes
- You can change the schedule in
.github/workflows/monitor.yml - Modify the cron expression:
*/15 * * * *(every 15 min)
your-repo/
├── monitor.py # Main monitoring script
├── telegram_bot.py # Telegram bot functionality
├── requirements.txt # Python dependencies
├── .github/
│ └── workflows/
│ └── monitor.yml # GitHub Actions workflow
└── README.md # This file
/register- Automatically register for notifications/unregister- Remove yourself from notifications/status- Check if you're registered
- Users send
/registerto your bot - Bot automatically adds their chat ID to
chat_ids.txt - File gets committed to your repository
- Next monitoring run picks up new registrations
- No manual intervention needed!
If you want email backup notifications:
- Go to your Google Account settings
- Turn on 2-factor authentication if not already enabled
- Go to Security → App Passwords
- Generate an app password for "Mail"
- Use this 16-character password as your SENDER_PASSWORD secret
- Change check frequency by modifying the cron schedule
- Add SMS notifications using services like Twilio
- Modify the CSS selector if needed
- Add Discord/Slack webhooks instead of email
- Check Actions tab for error logs
- Ensure your Tixr URL is correct
- Verify Gmail app password is set correctly
- Make sure secrets are configured properly