/Live-News-Sentiment-Analyser

A TextBlob web application that allows users to analyze the sentiment of news articles based on a specified topic. The application fetches news articles using the News API and visualizes the results in a ring chart.

Primary LanguagePythonMIT LicenseMIT

Live-News-Sentiment-Analyser

image image

Topic-Based Sentiment Analysis:

Input a topic, and the app will fetch related news articles and analyze their sentiment.

Sentiment Visualization:

View the sentiment distribution (positive, neutral, negative) in an easy-to-read ring chart.

Simple and Intuitive UI:

A user-friendly interface built with Flask.

Installation

Prerequisites

Python 3.8+ A valid News API key

git clone https://github.com/Kshitij-Shresth/Live-News-Sentiment-Analyser.git cd news-sentiment-analyzer

python3 -m venv venv source venv/bin/activate #On Windows use `venv\Scripts\activate

api_key = 'your_news_api_key_here' #Setup the NewsApi key

Structure

sentiment_analysis_app/ ├── app.py #The main Flask application ├── templates/ │ └── index.html #HTML template for the front end