Skip to content

This is a Telegram bot that helps users find train schedules and availability for Renfe trains.

Notifications You must be signed in to change notification settings

joseajrgr/renfe-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Renfe Bot

This is a Telegram bot that helps users find train schedules and availability for Renfe trains.

DEMO

RenfeBot.mp4

Features

  • Search for train stations
  • Select departure and arrival stations
  • Choose travel dates
  • Monitor specific train numbers for availability updates

Setup

To run this bot, you'll need to:

  1. Install Python and pip
  2. Set up a virtual environment
  3. Install required dependencies (python -m pip install python-telegram-bot selenium)
  4. Obtain a Telegram API token
  5. Download the ChromeDriver executable for Selenium

Configuration

Replace the values in file named config.py with your own API_TOKEN and CHROME_DRIVER_PATH.

Usage

  1. Run the bot using Python: python bot.py

  2. Start interacting with the bot by sending /origen command.

Dependencies

This project uses the following libraries:

  • python-telegram-bot
  • selenium
  • re
  • datetime

Make sure these are installed in your virtual environment.

About

This is a Telegram bot that helps users find train schedules and availability for Renfe trains.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages