Open mkilo88 opened 3 days ago
Re-opened
Markdown
As a data engineer, I need a function that can send an HTTP GET request to a book website and store the response. This function will be a fundamental part of our book data retrieval application, allowing us to fetch the current data on how many books are available in each category and the average price point of book in each category.
requests
library.200
, the function should return the book data in JSON format.200
, the function should return an error message indicating the status code and that the request was unsuccessful.Successful Request:
200
.Unsuccessful Request:
200
.Exception Handling:
Tasks should include things like: Create and test a function to make a request to the website Create and test a function to parse the response Create and test a function to extract the data Create and test a function to save the data for processing