The application utilizes the Flask framework to create a simple web service that retrieves and parses content from the Time website.
Make sure you have Flask installed. You can install it using:
pip install flask
git clone https://github.com/Satyaswarup11/Deeplogic_Tech_assignment.git
cd Deeplogic_Tech_assignment
Run the Flask application using the following command:
python app.py
Use the /getTimeStories endpoint to get the latest six stories in JSON format. Example:
curl http://<localhost>/getTimeStories
The application includes basic error handling to manage failed requests or unexpected errors during the process.
- Flask
- Requests