Skip to content

mithil27360/news-sentiment-analyzer_new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Sentiment Analyzer

A modern Flask web app to scrape, analyze, and visualize the sentiment of news articles from any online source. Track positivity, negativity, and neutrality across your favorite news outlets in real time.


Features

🔎 Analyze Any News Site 📊 Live Sentiment Trends 🏷️ Smart Categorization

Tech Stack


Python 3.8+

Flask

NLTK

newspaper3k

HTML5

CSS3
BeautifulSoup4 requests validators gunicorn lxml Jieba3k

Screenshots

image image


Live Demo


Quickstart

git clone https://github.com/mithilmitmpl/news-sentiment-analyzer_new.git
cd news-sentiment-analyzer_new

# (Optional) Virtual Environment
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Download NLTK data
python -m nltk.downloader vader_lexicon punkt

# Run the app
python app.py

# Visit: http://127.0.0.1:5001/

Project Structure

.
├── app.py
├── main.js
├── render.yaml
├── LICENSE
├── README.md
└── templates/
    ├── index.html
    ├── results.html
    └── sources.html

📝 License

Licensed under the MIT License.
See LICENSE for details.


👤 Author

mithilmitmpl
Open an issue for questions & suggestions!


About

A Flask based application that analyzes sentiments in news website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •