Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Build a web app that displays movie trailers from youtube using Youtube-API. Task: Build a text-based, or web (e.g. with flask) Requirements Your application will
Build a web app that displays movie trailers from youtube using Youtube-API.
Task:
Build a text-based, or web (e.g. with flask)
Requirements
Your application will let the user discover more information on one topic of their choice. The app will use API to fetch interesting data/text/images/media related to that topic.
Your app will present results to the user. (in this case, you should print the result of the movie trailer from youtube)
The user should be able to save, or 'bookmark' interesting results, and view a list of results that they have saved. Your user should be able to bookmark or collect interesting items from the results returned, and save these persistently in a data store. This is likely to be in some type of database, but may also include file downloads or other formats.
The app should cache recent searches for data that is unlikely to change. Example: your app queries an API for the capital city of Switzerland. This data is unlikely to change in the near future, so store it in a local cache (some type of data store) so the next time the user searches for the capital city of Switzerland, the data can be read from the cache instead of making another API call. A cache will note the time the data was saved. Your app will use that to determine if a new query should use data from the cache (if that result is in the cache) or make a new request to an API. [note that requests-cache is a nice library but not the same thing as implementing your own cache. Talk to me about your caching strategy before you begin this part.]
App implementation, design
You should write modular code. Separate different parts of your program into different modules. Each module should have a role in the program. Create any classes as needed. Functions should have a focused task.
Your app should be tested thoroughly. You should write unit tests. Include unit tests for the code that processes the API results, your bookmark store, your cache, and the way you present data to the user.
You should anticipate and handle errors. For example, from user input, and errors connecting to your APIs.
Task:
Build a text-based, or web (e.g. with flask)
Requirements
Your application will let the user discover more information on one topic of their choice. The app will use API to fetch interesting data/text/images/media related to that topic.
Your app will present results to the user. (in this case, you should print the result of the movie trailer from youtube)
The user should be able to save, or 'bookmark' interesting results, and view a list of results that they have saved. Your user should be able to bookmark or collect interesting items from the results returned, and save these persistently in a data store. This is likely to be in some type of database, but may also include file downloads or other formats.
The app should cache recent searches for data that is unlikely to change. Example: your app queries an API for the capital city of Switzerland. This data is unlikely to change in the near future, so store it in a local cache (some type of data store) so the next time the user searches for the capital city of Switzerland, the data can be read from the cache instead of making another API call. A cache will note the time the data was saved. Your app will use that to determine if a new query should use data from the cache (if that result is in the cache) or make a new request to an API. [note that requests-cache is a nice library but not the same thing as implementing your own cache. Talk to me about your caching strategy before you begin this part.]
App implementation, design
You should write modular code. Separate different parts of your program into different modules. Each module should have a role in the program. Create any classes as needed. Functions should have a focused task.
Your app should be tested thoroughly. You should write unit tests. Include unit tests for the code that processes the API results, your bookmark store, your cache, and the way you present data to the user.
You should anticipate and handle errors. For example, from user input, and errors connecting to your APIs.
Step by Step Solution
★★★★★
3.50 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
Creating a web app that displays movie trailers from YouTube using the YouTube API involves several steps including setting up a web framework Flask interacting with the YouTube API implementing a boo...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