Giter Site home page Giter Site logo

kaushalvivek / ticket-availability-notifier Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 24 KB

Cronjob for notification on availability of tickets for a new movie.

License: GNU General Public License v3.0

Python 100.00%
python python3 movie-ticket-management

ticket-availability-notifier's Introduction

Movie Ticket Availability Notifier

There have been times when I wanted to, but could not watch a movie on its first weekend because I was late in booking the tickets. This crontask script will notify you, when tickets to the target movie are available, so you never miss a first-day-first-show again.

This is a Crontask for notification on availability of tickets for a new movie.

BookMyShow is used for scraping availability, so check if your city has bookings through BMS before using.

Pre-requisites:

  1. Cron Jobs
  2. Python Libraries:-
    • bs4
    • requests
    • smtp
    • time
    • argparse (included by default)

How to Use:

Fill up the below section in main.py before setting up the crontask. This can be found at line 12 onwards.

# FILL THIS UP OTHERWISE THE SCRIPT WON'T RUN
#################################################
# Login details of any gmail account
bot_mail = ''
password = ''
#################################################

Add the file path, date and time for running and excution command in crontab -e.

# For checking ticket availability every 15 minutes.

*/15 * * * * python3 $PATH_TO_SCRIPT/main.py -m [] -l [] [email protected]

ADD THE COMMAND LINE ARGUMENTS BEFORE ADDING CRONJOB. Help is given below.

$ python3 movie.py -h
usage: main.py [-h] [-m [M]] [-l [L]] email

positional arguments:
  email       Email address to notify if tickets are available

optional arguments:
  -h, --help  show this help message and exit
  -m [M]      Name of movie to track
  -l [L]      Location where movie is tracked

For any queries mail me here.

ticket-availability-notifier's People

Contributors

gadilashashank avatar kaushalvivek avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ticket-availability-notifier's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.