Regal New Movies Announcer is a Python-based script designed to fetch and announce new movie releases from the Regal Movies website to a Telegram channel. The tool utilizes Selenium for web scraping and integrates with the Telegram API for sending messages.
Regal New Movies Announcer automates the process of monitoring new movie releases on the Regal Movies website and announcing them to a specified Telegram channel. This script is particularly useful for movie enthusiasts and communities who want to stay updated with the latest movie releases. Read more in my blog post.
Check out the bot's channel on Telegram!
- Duplicate Detection: Avoid announcing movies that have already been discovered.
- Automatic Cleanup: Remove movies that haven't been seen for over two months to avoid bloat.
- Testing Mode: Output messages to the console for testing purposes.
To install Regal New Movies Announcer, follow these steps:
- Clone the repository:
git clone https://github.com/Braxt0n/regal-new-movies
- Navigate to the project directory:
cd regal-new-movies
- Install the required dependencies:
pip install -r requirements.txt
- Ensure you have the required dependencies installed.
- Set up your Telegram bot token and channel ID in the script:
# Telegram bot token TOKEN = 'put_token_here' # Telegram channel username or ID CHANNEL_ID = 'put_channel_id_here'
- Run the script:
python regal_new_movies.py
- Throw it in a cron job to have it run on a regular interval.
To run the script in testing mode (which outputs messages to the console instead of sending them to Telegram), use the --testing
flag:
python regal_new_movies.py --testing
- Upcoming Reminder: Some showtimes are far off into the future, add an option to alert users when a movie has showtimes in the next two weeks that have been on sale for a while.
- Enhance Error Handling: Improve error handling and logging.
- Add Custom Notification Options: Allow users to customize notification messages.
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes.
- Commit your changes:
git commit -am 'Add new feature'
- Push to the branch:
git push origin feature-branch
- Create a new Pull Request.
Please ensure all pull requests adhere to the existing code style and include appropriate tests.
This project utilizes the following tools and libraries:
This project is licensed under the Apache-2.0 License. See the LICENSE file for more details.
For any questions or feedback, feel free to open an issue or email me.