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.
Python 3.8+ |
Flask |
NLTK |
newspaper3k |
HTML5 |
CSS3 |
| BeautifulSoup4 | requests | validators | gunicorn | lxml | Jieba3k |
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/.
├── app.py
├── main.js
├── render.yaml
├── LICENSE
├── README.md
└── templates/
├── index.html
├── results.html
└── sources.html
Licensed under the MIT License.
See LICENSE for details.
mithilmitmpl
Open an issue for questions & suggestions!

