{"id":48296955,"url":"https://github.com/zaryab2000/decipher-news-agent","last_synced_at":"2026-04-04T23:37:34.292Z","repository":{"id":348721476,"uuid":"1187885021","full_name":"zaryab2000/decipher-news-agent","owner":"zaryab2000","description":"DNA is personalized news agent for me.","archived":false,"fork":false,"pushed_at":"2026-04-02T13:39:19.000Z","size":66,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T02:38:15.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaryab2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-21T10:11:13.000Z","updated_at":"2026-04-02T11:10:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zaryab2000/decipher-news-agent","commit_stats":null,"previous_names":["zaryab2000/decipher-news-agent"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zaryab2000/decipher-news-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaryab2000%2Fdecipher-news-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaryab2000%2Fdecipher-news-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaryab2000%2Fdecipher-news-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaryab2000%2Fdecipher-news-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaryab2000","download_url":"https://codeload.github.com/zaryab2000/decipher-news-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaryab2000%2Fdecipher-news-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31419538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-04-04T23:37:33.339Z","updated_at":"2026-04-04T23:37:34.248Z","avatar_url":"https://github.com/zaryab2000.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNA - Decipher News Agent\n\nPersonal AI agent that generates a daily newspaper from email newsletters, YouTube videos, and news APIs, published as a Notion sub-page.\n\n## Setup\n\n### 1. Install Dependencies\n\n```bash\nuv venv \u0026\u0026 uv pip install -e .\nbrew install yt-dlp\n```\n\n### 2. Google Cloud Setup\n\n1. Create a Google Cloud project\n2. Enable **Gmail API** and **YouTube Data API v3**\n3. Create **OAuth 2.0 Desktop app** credentials\n4. Copy client ID and secret to `.env`:\n   ```\n   GOOGLE_CLIENT_ID=your_client_id\n   GOOGLE_CLIENT_SECRET=your_client_secret\n   ```\n5. Run the auth script and complete browser consent:\n   ```bash\n   uv run scripts/google_auth.py\n   ```\n6. Copy the printed refresh token to `.env`:\n   ```\n   GOOGLE_REFRESH_TOKEN=your_refresh_token\n   ```\n\n### 3. Gmail Setup\n\nCreate a Gmail filter that auto-labels incoming newsletters with `DNA/Newsletters`.\n\n### 4. YouTube Setup\n\n1. Create a \"DNA Queue\" playlist on YouTube\n2. Copy the playlist ID to `dna-config.yaml` under `youtube.playlist_id`\n\n### 5. News API Setup\n\n1. Create a [NewsAPI.org](https://newsapi.org) account\n2. Copy API key to `.env` as `NEWS_API_KEY`\n3. (Optional) Create a [GNews.io](https://gnews.io) account for fallback, set `GNEWS_API_KEY`\n\n### 6. Notion Setup\n\n1. Create a \"Zaryab's Newspaper\" page in Notion\n2. Copy the page ID to `dna-config.yaml` under `notion.parent_page_id`\n3. Share the page with the Notion MCP integration\n\n## Usage\n\nIn Claude Code CLI:\n\n```bash\n/report-news\n```\n\n## Testing Individual Scripts\n\n```bash\nuv run scripts/fetch_news.py        # News API\nuv run scripts/fetch_gmail.py       # Gmail newsletters\nuv run scripts/fetch_youtube.py     # YouTube playlist\n```\n\nEach script outputs JSON to stdout. Errors go to stderr with non-zero exit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaryab2000%2Fdecipher-news-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaryab2000%2Fdecipher-news-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaryab2000%2Fdecipher-news-agent/lists"}