https://github.com/kc596/movieticketnotification
Get notification when booking of a movie ticket starts.
https://github.com/kc596/movieticketnotification
Last synced: about 1 year ago
JSON representation
Get notification when booking of a movie ticket starts.
- Host: GitHub
- URL: https://github.com/kc596/movieticketnotification
- Owner: kc596
- Created: 2021-12-14T13:11:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T05:57:18.000Z (over 4 years ago)
- Last Synced: 2025-02-14T00:15:44.553Z (over 1 year ago)
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# movieticketnotification
## Pre-requisite
1. Python 3.6 or above
2. pip
## Running the project
1. Install the requirements.
```shell
pip install requirements.txt
```
2. Add email and password to use for sending emails in `config/__init__.py`
3. This step is needed for sending email through your google account via SMTP.
> Google => Manage your Google Account => Security => Less secure app access => Turn on.
4. Run main.py
```shell
python3 main.py
```
## Monitoring a movie booking to open for a date
1. Goto bookmyshow.com and select the movie you want to monitor for your city.
2. Try to Book Tickets and select your desired screen with language.
Example : English, 3D
3. Copy the url. The url will look like `https://in.bookmyshow.com/buytickets/spider-man-no-way-home-patna/movie-patn-ET00319080-MT/20211216`
where city is **Patna**, movie is **SpiderMan: No way Home** and date is **16 Dec 2021**.
4. Make a **POST** request to **/movies/monitor/booking-started** path with payload:
```json
{
"url": "",
"date": "",
"email": ""
}
```
#### Example
Endpoint: `http://127.0.0.1:5000/movies/monitor/booking-started`
Payload:
```json
{
"url": "https://in.bookmyshow.com/buytickets/spider-man-no-way-home-patna/movie-patn-ET00319080-MT/20211216",
"date": "20211217",
"email": "chaudhary.kc.kunal@gmail.com"
}
```