Skip to content

A Flask-based app that scrapes content from a given article URL using BeautifulSoup, summarizes it with the Gemini API, and formats the summary for easy reading. Ideal for quick, customizable article summaries.

Notifications You must be signed in to change notification settings

AbdooMohamedd/Article-Summarizer-with-Gemini-API

Repository files navigation

Article Summarizer

Home Page

This is the home page where users can start the process of summarizing an article.

Home Page

Enter the Article URL

On this page, users can enter the URL of the article they want to summarize.

Enter URL

Summarized Article

After submitting the URL, the summarized article is displayed on this page.

Summay

Instructions

  1. Clone the repository:

    git clone https://github.com/AbdooMohamedd/Article-Summarizer-with-Gemini-API.git
  2. Install the required packages:

    pip install -r requirements.txt
  3. Generate an API key: Go to Google AI Studio and generate your API key.

  4. Set up the GEMINI_API_KEY environment variable:

    • On Windows:

      1. Open Command Prompt and run:
        set GEMINI_API_KEY=your_api_key_here
      2. For a permanent setup:
        1. Search for "Environment Variables" in the Start Menu.
        2. Click Edit the system environment variables > Environment Variables.
        3. Add a new variable GEMINI_API_KEY with your API key.
    • On macOS/Linux:

      1. Open Terminal and run:
        export GEMINI_API_KEY=your_api_key_here
      2. For a permanent setup, add the line to ~/.bashrc, ~/.bash_profile, or ~/.zshrc:
        export GEMINI_API_KEY=your_api_key_here
      3. Apply the changes:
        source ~/.bashrc  # or ~/.bash_profile or ~/.zshrc
  5. Navigate to the project folder:

    cd path/to/your/project
  6. Run the application:

    python app.py

About

A Flask-based app that scrapes content from a given article URL using BeautifulSoup, summarizes it with the Gemini API, and formats the summary for easy reading. Ideal for quick, customizable article summaries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published