Skip to content

MaxBubblegum47/VictoriaCinemaTelegramBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CinemaBot

CinemaBot is a little telegram bot that collects information from my local movie theater's website: https://www.victoriacinema.it/victoria_cinema/index.php and displays them as messages via telegram. There's a chat thanks to that you can interact with the bot and get this informatios:

  • When they are in the theater
  • Duration
  • Cast
  • Direction
  • Genere
  • Movie trailer
  • Reservation link

How does it work?

The first thigs is to create a file: config.py and add the following line:

TOKEN = "place your API key here"
BOTNAME = "place here the name of your bot"

Then, after installing the requirements with pip install -r requirements.txt, you can execute the following line:

bash main.sh

I want to remember you that now to use pip you need to create a virtual envirorment before.

Available Commands

Screenshots

screenshot_1 screenshot_2

How it works?

The bot has two parts:

  • bot
  • movie updater

The aim of the bot is to display information to the user in the telegram chat, while the movie updater is responsible for retrieves information about the movies.

About the website

The website was done by https://www.creaweb.it/creaweb/index.php The company that seems to create website (php based) for movie theaters. It has curious html configurations, in which movies are divided in Even and Odd div class.

Information for the Developer

How to run the program

Simply do bash main.sh

How to push to docker hub

Commands list (you need to change maxbubblegum wit your user and log with your credentials):

  • docker build . -t maxbubblegum/victoriacinemabot:1.1
  • docker push maxbubblegum/victoriacinemabot:1.1

How to run the docker image

If you want to run the program without thinking to much about docker, just CTRL + C CTRL + V this two commands in your terminal:

  • `docker run maxbubblegum/victoriacinemabot:1.1

About

Telegram bot that checks for movies in my favourite local theater

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages