{"id":51932440,"url":"https://github.com/wiqilee/crypto-sentiment-dashboard","last_synced_at":"2026-07-28T09:40:06.082Z","repository":{"id":309224899,"uuid":"1035518764","full_name":"wiqilee/crypto-sentiment-dashboard","owner":"wiqilee","description":"Real-time crypto news sentiment dashboard using NewsAPI + VADER. Analyze BTC/ETH/SOL trends, visualize with Plotly/Matplotlib, export PDF.","archived":false,"fork":false,"pushed_at":"2025-08-10T16:02:19.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-28T09:40:05.028Z","etag":null,"topics":["bitcoin","coingecko","cryptocurrency","dashboard","data-visualization","ethereum","matplotlib","newsapi","pdf","plotly","python","reportlab","sentiment-analysis","snscrape","solana","streamlit","time-series","vader","vader-sentiment-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wiqilee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-10T15:15:10.000Z","updated_at":"2025-08-10T22:46:29.000Z","dependencies_parsed_at":"2025-08-10T18:19:03.641Z","dependency_job_id":null,"html_url":"https://github.com/wiqilee/crypto-sentiment-dashboard","commit_stats":null,"previous_names":["wiqilee/crypto-sentiment-dashboard"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/wiqilee/crypto-sentiment-dashboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiqilee%2Fcrypto-sentiment-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiqilee%2Fcrypto-sentiment-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiqilee%2Fcrypto-sentiment-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiqilee%2Fcrypto-sentiment-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiqilee","download_url":"https://codeload.github.com/wiqilee/crypto-sentiment-dashboard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiqilee%2Fcrypto-sentiment-dashboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35987426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-28T02:00:06.341Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","coingecko","cryptocurrency","dashboard","data-visualization","ethereum","matplotlib","newsapi","pdf","plotly","python","reportlab","sentiment-analysis","snscrape","solana","streamlit","time-series","vader","vader-sentiment-analysis"],"created_at":"2026-07-28T09:40:05.286Z","updated_at":"2026-07-28T09:40:06.064Z","avatar_url":"https://github.com/wiqilee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crypto Sentiment Dashboard\n\n![Status](https://img.shields.io/badge/status-active-success.svg)\n![Python](https://img.shields.io/badge/Python-3.10%2B-3776AB?logo=python\u0026logoColor=white)\n![Streamlit](https://img.shields.io/badge/Streamlit-1.32%2B-FF4B4B?logo=streamlit\u0026logoColor=white)\n![Plotly](https://img.shields.io/badge/Plotly-5.20%2B-3F4F75?logo=plotly\u0026logoColor=white)\n![License](https://img.shields.io/badge/License-MIT-yellow.svg)\n![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)\n[![Made by wiqilee](https://img.shields.io/badge/made%20by-wiqilee-000000.svg?logo=github)](https://github.com/)\n\nA Streamlit dashboard for analyzing crypto news sentiment (BTC / ETH / SOL / OTHER) using VADER.  \nIt includes interactive charts (Plotly), export-ready PNGs (RGB-safe), and a print-quality PDF report (ReportLab).\n\n\u003e **Disclaimer:** This project is for research and monitoring purposes only. It is **not** financial advice.\n\n---\n\n## ✨ Features\n\n- **Interactive charts** — Source \u0026 label bar charts, daily time-series, and correlation heatmap.\n- **Crypto domain insights** — Auto-generated summary, bullet-point analysis, recommendations, and conclusion.\n- **Export-ready images** — Large-canvas PNGs with generous margins, **forced RGB** to avoid disappearing lines in PDFs.\n- **One-click PDF** — A neatly paginated report with all charts and summary sections.\n- **Powerful filters** — Label, source, and UTC date range.\n- **Pandas compatibility** — Hides table index with a safe fallback for older pandas versions.\n\n---\n\n## 🚀 Quick start\n\n```bash\n# 1) (optional) create a virtual environment\npython -m venv .venv\n# activate it:\n#   Windows: .venv\\Scripts\\activate\n#   macOS/Linux: source .venv/bin/activate\n\n# 2) install dependencies\npip install -r requirements.txt\n\n# 3) run the app\nstreamlit run streamlit_app.py\n```\n\nThe app reads data from `data/news_raw.csv`.\n\n---\n\n## 📦 Requirements\n\n- Python **3.10+** (recommended)\n- `streamlit`, `pandas`, `numpy`\n- `plotly`, `matplotlib`\n- `kaleido` (PNG export backend for Plotly)\n- `reportlab`, `Pillow` (PDF builder and image backend)\n\nAll pinned in `requirements.txt`.\n\n---\n\n## 🗂️ Data schema\n\nThe loader (`sentiment.py`) normalizes your columns automatically. Minimum required:\n\n- `publishedAt` / `published` / `date` → normalized to `publishedat` (UTC timezone)\n- `source` — outlet name/domain\n- `compound` — VADER score in `[-1, +1]`\n\nOptional:\n- `channel`, `title`, `description`, `url`, `label` (if `label` is missing, it is inferred from text: **BTC/ETH/SOL**, else **OTHER**)\n\n**Example row:**\n\n```csv\npublishedAt,source,compound,title,url,label\n2025-08-01T10:30:00Z,CoinDesk,0.21,\"BTC breaks range\",\"https://example.com/article\",BTC\n```\n\n\u003e Tip: If your dataset is large or sensitive, keep it out of your repo and list `data/*.csv` in `.gitignore`.\n\n---\n\n## 📊 Charts \u0026 PDF exports\n\nWhen you click **Build PDF report** in the UI, the app:\n\n1. Saves high-resolution PNGs for each chart with large margins so labels never get cropped.\n2. **Forces RGB** (removes alpha) on the PNGs to prevent thin lines from disappearing in PDFs.\n3. Assembles a polished, paginated PDF using ReportLab — one chart per page, plus summaries.\n\n**About the time-series edges**  \nThe PDF version uses a small time padding by default to avoid edge clipping. You can switch to fully edge-to-edge by editing the `timeseries_by_label(..., theme_for_pdf=True)` x-axis range in `streamlit_app.py`.\n\n---\n\n## 🧱 Project structure\n\n```\n.\n├─ streamlit_app.py        # Streamlit UI (Plotly + PDF trigger)\n├─ sentiment.py            # Data loader, domain analysis, print-safe charts (matplotlib), PDF builder\n├─ requirements.txt\n├─ data/\n│  └─ news_raw.csv         # Your dataset (kept local by default)\n├─ charts/                 # Generated PNGs (auto-created)\n└─ LICENSE                 # MIT © 2025–present wiqilee\n```\n\n---\n\n## ⚙️ Configuration\n\nAdjust label colors/order in both modules if desired:\n\n```python\nLABEL_COLORS = {\"BTC\": \"#22c55e\", \"ETH\": \"#ffffff\", \"SOL\": \"#fde047\", \"OTHER\": \"#94a3b8\"}\nLABEL_ORDER  = [\"BTC\", \"ETH\", \"SOL\", \"OTHER\"]\n```\n\n---\n\n## 🛠️ Troubleshooting\n\n- **`kaleido` export error**  \n  Ensure `kaleido==0.2.1` is installed:\n  ```bash\n  pip install --upgrade kaleido\n  ```\n\n- **Time-series lines missing in PDFs**  \n  Already handled by forcing RGB on exported PNGs. Make sure `Pillow` is installed.\n\n- **Table index won’t hide (old pandas)**  \n  The app falls back from `styler.hide_index()` to `styler.hide(axis=\"index\")` automatically.\n\n---\n\n## 🗺️ Roadmap\n\n- Automated news ingestion\n- Alternative sentiment models beyond VADER\n- One-click deploy to Streamlit Community Cloud\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.  \nMake sure your PR includes a clear description and, when possible, screenshots of UI changes.\n\n---\n\n## 📜 License\n\n**MIT** © 2025–present **wiqilee** — see [`LICENSE`](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiqilee%2Fcrypto-sentiment-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiqilee%2Fcrypto-sentiment-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiqilee%2Fcrypto-sentiment-dashboard/lists"}