This is the backend of the News Summarizer Chrome Extension, built using Flask. The backend serves a REST API to process and summarize news content from URLs.
- Fetches and processes HTML or JSON from the given URL.
- Generates summaries using NLP techniques.
- Removes irrelevant content, such as hashtags, for concise summaries.
- Prioritizes sentences relevant to the news title.
Before you begin, ensure you have the following installed on your machine:
- Python 3.8 or above
- pip (Python package manager)
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the dependencies:
pip install -r requirements.txt
-
Set up environment variables (if needed):
Create a
.env
file in the project root and add variables likeFLASK_APP
andFLASK_ENV
.
-
Start the Flask development server:
flask run
-
The server will be available at
http://127.0.0.1:5000
.
Summarizes the content of a given URL.
{
"url": "https://example.com/news-article"
}
{
"summary": {
"summary:"Summarized content here..."
}
}
This project is licensed under the MIT License. See the LICENSE
file for details.