Open hdavidson42 opened 1 week ago
As a data engineer, I need a function that can send an HTTP GET request to a URL and handle the response. This function will be a fundamental part of our book data pipeline
requests
library.200
, the function should return the raw HTML data.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:
New Functionality: Scrape data from URL
Problem Definition
As a software developer, I need a function that can scrape data from the given URL and handle the response. This function will be a fundamental part of our book category data, allowing us to fetch book information for a specific category.
Functional Requirements
requests
library.200
, the function should return the HTML content of the page.200
, the function should return an error message indicating the status code and that the request was unsuccessful.Testing Requirements
Successful Request:
200
.Unsuccessful Request:
200
.Exception Handling:
Definition of Done