Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

Β© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

FRANKMAKORI/kenya-sentiment-insights

Domain:

natural language processing

Record type:

softwareproject
Creator:
FRA
Host:
πŸ‡°πŸ‡ͺ AI-powered dashboard that analyzes public sentiment in Kenya using live news, Python, and Streamlit. ```markdown # πŸ‡°πŸ‡ͺ Kenya Sentiment & Policy Analytics Dashboard > 🧠 AI-powered analytics dashboard visualizing **public sentiment and media trends in Kenya** β€” powered by **Streamlit**, **Google News**, and **TextBlob** for sentiment analysis. --- ## 🌍 Project Overview The **Kenya Sentiment & Policy Analytics Dashboard** provides a real-time, AI-driven look at how Kenyan news and public media reflect national sentiment on key social, political, and economic topics. It combines: - πŸ“° **News scraping** (Google News) - 🧠 **AI-powered sentiment analysis** - πŸ“Š **Interactive Streamlit visualizations** --- ## 🧩 Features βœ… Real-time data collection from Google News βœ… Sentiment analysis using `TextBlob` βœ… Interactive dashboards (charts, filters, and summaries) βœ… One-click data refresh inside Streamlit βœ… Clean modular Python project structure --- ## πŸ—οΈ Project Structure ``` kenya-sentiment-insights/ β”‚ β”œβ”€β”€ data/ β”‚ β”œβ”€β”€ raw/ # Unprocessed scraped data β”‚ └── processed/ # Cleaned and analyzed data β”‚ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ data_collection/ # Scripts for news scraping β”‚ β”‚ └── scrape_news.py β”‚ β”œβ”€β”€ sentiment_analysis/ # Sentiment processing β”‚ β”‚ └── analyze_sentiment.py β”‚ └── dashboard/ # Streamlit visualization β”‚ └── app.py β”‚ β”œβ”€β”€ requirements.txt β”œβ”€β”€ README.md └── .streamlit/ └── config.toml ```` --- ## βš™οΈ Installation & Setup ### πŸ–₯️ 1. Clone the repository ```bash git clone github.com cd kenya-sentiment-insights ```` ### 🧱 2. Create a virtual environment ```bash python -m venv .venv .\.venv\Scripts\activate # Windows ``` ### πŸ“¦ 3. Install dependencies ```bash pip install -r requirements.txt ``` ### πŸ“° 4. Collect news data ```bash python src/data_collection/scrape_news.py ``` ### 🧠 5. Analyze sentiment ```bash python src/sentiment_analysis/analyze_sentiment.py ``` ### πŸ“Š 6. Run the dashboard ```bash streamlit run src/dashboard/app.py ``` --- ## πŸš€ Liv …

Visit

github.com

Tasks

sentiment analysistext classification

Licenses

MIT