How sakshi-dhakne/newspulse works
NewsPulse is a command-line news digest application. Running app.py loads configured credentials, fetches U.S. top headlines, categorizes up to 15 articles, formats a digest, and sends it by email. The graph separates orchestration, article categorization, and configuration/delivery integrations. The README documents the overall workflow; source excerpts show the calls and integrations. The recipient is configured in the email message, but no separate recipient-side component is represented.
Main entry points: app.py Digest workflow · fetcher.py News fetcher · email_sender.py Email sender · analyzer.py Keyword categorizer
Components 8
Digest orchestration
- Digest workflow
app.py
Article classification
- Keyword categorizer
analyzer.py
Configuration and delivery
- News fetcher
fetcher.py - Credential config
config.py - Email sender
email_sender.py
Other components
- User
- NewsAPI
- Gmail SMTP
Connections 7
- User → Digest workflow: runs
README.md - Digest workflow → Credential config: imports credentials
app.py - Digest workflow → News fetcher: fetches articles
app.py - News fetcher → NewsAPI: requests headlines
fetcher.py - Digest workflow → Keyword categorizer: categorizes articles
app.py - Digest workflow → Email sender: sends digest
app.py - Email sender → Gmail SMTP: sends via SMTP
email_sender.py