if __name__ == "__main__": print( 'Please wait for around 30 mins! It will take sometimes while getting data from OMDB API calling.....' ) print( 'If you want to run the program with less data to avoid delay then please minimize the contents of ' 'inputs folder and re-run!!!\n') show = Show() unwatched_movie_dic = {} try: '''read input text file''' fa = FileAccess() movie_list = fa.read_file(fa.movie_list_txt) watched_movie_list = fa.read_file(fa.watched_movie_list_txt) unwatched_movie_list = set(movie_list) - set(watched_movie_list) '''print movie, watched and unwatched movie id''' ''' print('-----------> Movie Id: ') show.print_input_list(movie_list) print('-----------> Watched Movie Id: ') show.print_input_list(watched_movie_list) print('-----------> Unwatched Movie Id: ') show.print_input_list(unwatched_movie_list) ''' '''call OMDB api and load movie related data''' api = OMDBApi() movie_dic = api.call_omdb_api(movie_list) watched_movie_dic = api.call_omdb_api(watched_movie_list)