Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For #2: build an API with two endpoints, /diff/ / and /list. The /diff/ / endpoint (for example /diff/2020- 01/2020-02) should use the http://www.tvmaze.com/api# episodes-by-date
For #2: build an API with two endpoints, /diff// and /list. The /diff// endpoint (for example /diff/2020- 01/2020-02) should use the http://www.tvmaze.com/api# episodes-by-date endpoint on TVmaze to find what shows aired ONLY in month2, and not month1. For example, if shows A, B, C, D aired in month1, and shows C, D, E, F aired in month2, then shows E, F only aired in month1. The endpoint should return a list of those shows as JSON. The /list endpoint should return, as JSON, a list of every request made to your API, with the date and time. For example [{"datetime": "January 4, 2021 9:00 PM", "call":"/diff/2018- 01/2019-01"}] if only one request had ever been made to the API with those characteristics. You can store the requests in SQLite. For Final: write a Python script that takes in a month as a command-line argument (https://realpython.com/python- command-line-arguments/). For every show that aired during that month, upload a file to S3 that lists every day that it aired. Put that file in an S3 bucket, with the number of times the show aired that month as a prefix in the object key name. For example, if a show called "Example Show" aired 10 times in 2020-01 (January 2020), you would use this path for the show --your-s3- bucket/10/example-show (or you can use the show's ID in TVmaze instead of the name) -- and you would upload a file that looks like 2020-01-02 2020-01-04 2020-01-06 and so on, depending on exactly what days the show has aired during that month. For #2: build an API with two endpoints, /diff// and /list. The /diff// endpoint (for example /diff/2020- 01/2020-02) should use the http://www.tvmaze.com/api# episodes-by-date endpoint on TVmaze to find what shows aired ONLY in month2, and not month1. For example, if shows A, B, C, D aired in month1, and shows C, D, E, F aired in month2, then shows E, F only aired in month1. The endpoint should return a list of those shows as JSON. The /list endpoint should return, as JSON, a list of every request made to your API, with the date and time. For example [{"datetime": "January 4, 2021 9:00 PM", "call":"/diff/2018- 01/2019-01"}] if only one request had ever been made to the API with those characteristics. You can store the requests in SQLite. For Final: write a Python script that takes in a month as a command-line argument (https://realpython.com/python- command-line-arguments/). For every show that aired during that month, upload a file to S3 that lists every day that it aired. Put that file in an S3 bucket, with the number of times the show aired that month as a prefix in the object key name. For example, if a show called "Example Show" aired 10 times in 2020-01 (January 2020), you would use this path for the show --your-s3- bucket/10/example-show (or you can use the show's ID in TVmaze instead of the name) -- and you would upload a file that looks like 2020-01-02 2020-01-04 2020-01-06 and so on, depending on exactly what days the show has aired during that month
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started