A script designed to get an email about the next episode time of the given Tv series. The input gets stored in the MySQL database.
- Python 3.3 and up
- MySQL
- Install MySQL by executing following commands in terminal.
$ sudo apt-get update
$ sudo apt-get install mysql-server
$ mysql_secure_installation
- Change the user and password variables in
main.py
file according to the above configured MySQL.
Gmail by default tries to make your email secure by preventing this type of third-party access. You can manage your gmail security settings by going to this link and allowing less secure apps. It’s turned off by default so you have to turn it on.
In send_email.py
file set username
to your gmail userid and set password
to your gmail password.
$ pip install -r requirements.txt
or
You can use the virtual environment in the repository.
$ source innovaccer/bin/activate
$ python main.py
- Store the query in MySQL Database.
- Get imdb id from https://www.imdb.com/find?q=tv-series-name
- Check if the series have streamed all episodes or not. If no, then continue else give output.
- Go to https://www.imdb.com/id/episodes url and scrape the date of next episode.
- If all episodes have streamed of current season then scrape the date of next season from https://www.imdb.com/title/id/episodes?season=next-season-number.
- Send the mail of gathered results.
Number of queries 1
Email address abhishekk16101@iiitnr.edu.in
TV Series Flash, Game of Thrones, House of Cards