This is a simple blog website created using Flask, a lightweight web framework for Python, and API integration. The website consists of two pages and utilizes the Flask framework along with the Requests module in Python to retrieve data from an external API endpoint and display it on the webpage.
- Two-page website: The website includes a homepage with the blog titles and a blog page with the body of the blog.
- Flask framework: Utilizes Flask, a micro web framework for Python, to handle routing, request handling, and template rendering.
- API integration: Fetches data from an external API endpoint and displays it on the webpage.
- Dynamic content: The content on the blog page is dynamically generated based on the data retrieved from the API.
- Python 3.x
- Flask
- Requests module
- Run the Flask application:
python main.py
- Open a web browser to view the homepage and navigate to the blog page to see the dynamically fetched content.
main.py
: Main Flask application file containing route definitions and application logic.templates/
: Directory containing HTML templates for the web pages.static/
: Directory for storing static files such as CSS, JavaScript, and images.
Contributions are welcome! If you have any suggestions, enhancements, or bug fixes, feel free to open an issue or create a pull request.
- Flask: A micro web framework for Python.
- Requests: An elegant and simple HTTP library for Python.
For any inquiries or support, please contact [[email protected]].