This is a Telegram bot that helps users find train schedules and availability for Renfe trains.
RenfeBot.mp4
- Search for train stations
- Select departure and arrival stations
- Choose travel dates
- Monitor specific train numbers for availability updates
To run this bot, you'll need to:
- Install Python and pip
- Set up a virtual environment
- Install required dependencies (
python -m pip install python-telegram-bot selenium
) - Obtain a Telegram API token
- Download the ChromeDriver executable for Selenium
Replace the values in file named config.py
with your own API_TOKEN and CHROME_DRIVER_PATH.
-
Run the bot using Python:
python bot.py
-
Start interacting with the bot by sending
/origen
command.
This project uses the following libraries:
- python-telegram-bot
- selenium
- re
- datetime
Make sure these are installed in your virtual environment.