The AI News Blog Generator is a streamlined tool designed to automate the creation of high-quality blogs on AI-related topics. Users can either fetch the latest AI news or provide custom links to generate professional-grade blogs quickly and efficiently.
- Fetch Latest AI News: Utilizes the GNews API to retrieve the top 5 AI news articles daily.
- Blog Generation from News: Allows users to select any fetched news article to generate a blog.
- Custom Link Support: Users can input any AI-related news link to generate a detailed blog.
- Lightweight Data Scraping: Implements Jina for efficient and lightweight data extraction.
- AI-Powered Blog Writing: Leverages the GPT-4o-mini model to create insightful, structured, and polished blogs.
-
Fetch AI News:
- The app retrieves the latest top 5 AI news articles from GNews.
- Users can review the articles and select specific ones for blog creation.
-
Custom News Input:
- Users can input their own AI-related news links.
- The app scrapes the content and generates a blog based on the provided link.
-
Blog Generation:
- Blogs are crafted with a structured format, including an introduction, key insights, practical applications, and a conclusion.
- Ensures a professional tone and reader-friendly layout.
-
Save Blogs:
- Generated blogs can be saved as text files for further use.
- Python: Core language for development.
- Streamlit: Provides an interactive user interface.
- GNews API: Fetches the latest AI news articles.
- Jina: Lightweight solution for data scraping.
- GPT-4o-mini Model: Generates high-quality, professional blogs.
- Clone this repository:
git clone https://github.com/your-repo-name/ai-news-blog-generator.git
- Navigate to the project directory:
cd ai-news-blog-generator
- Install dependencies:
pip install -r requirements.txt
- Run the application:
streamlit run app.py
- Launch the Streamlit app.
- Use the "Fetch Latest AI News" feature to retrieve and select AI news articles for blog generation.
- Input custom AI-related news links to generate blogs.
- View and save the generated blogs as text files.
Contributions are welcome! Please fork the repository, create a feature branch, and submit a pull request.