I’m doing a project for my trainee where I have to make a bot that needs to do this actions:
Read List of series and movies from an Excel file. (The category distinguishes film from series)
For each series:
-Extract synopsis, number of estimates, overall rating, calculation of average estimates of numbers.
-Extract list of episodes from all seasons in which each episode needs to identify title, rating, data and episode number.
-Saving this information in a sheet is the following information about the series and the following sheets as lists of occurrences of each first season by season and within the first season ordered by rating.
- Convert dates to format Ex: 21 January 2022
For each movie:
- Extract Synopsis, year, duration, overall rating, number of estimates, popularity and premiere data for each film;
-Store this information in an Excel where the movies are sorted by year and rating.
- Save an Excel file in which for each movie it indicates whether it was possible to process the movie and if not, indicate the error that occurred.
Email each year’s most popular movie and series with the best average episode rating.
This being said, I have already all the sequence, but now I need to handle the errors/logs such as:
- a global file of errors to process whether it’s series or movies
if the errors are in the individual processing of a series or film, it is necessary to record the error and move on to the next case. If the error is outside the processing of the series or movie or before reaching that part, it is necessary to send an email and finish the process.
I’M super stucked with this part. I have a serieFilter sequence with a loop and a movieFilter sequence, a sent mail sequence and a login one.
should I put a catch and try around the loop of filter and movie? and what about sending email with the error, in which sequence?
i’m very lost at this error hanlding part