Playbooks
AI Vibe CodingStarter91% · Ready

Zero-Cost Daily News Summary Bot: GitHub Actions Scheduled Scraping and Multi-Language Push

Configure in 45 minutes to achieve automatic RSS scraping at 8 AM daily, AI multi-language summarization, and push to Feishu/Slack. Completion rate: 91%.

Est. time: 45 minUpdated: 2026-11-26
Node.js / PythonRSS / Public APICron / GitHub ActionsWebhook
Zero-Cost Daily News Summary Bot: GitHub Actions Scheduled Scraping and Multi-Language Push

Completion Score

Overall completion rate is 91%. Core automated workflows (scraping, summarization, pushing) are fully operational and stable. AI performs excellently in generating summary logic and configuration files but has limitations when handling complex anti-bot mechanisms, requiring manual intervention.

91%Ready

Dimension breakdown

Public RSS/Atom Scraping and Deduplication96%

Mature solution based on feedparser; deduplication logic is simple and efficient with excellent support for public sources.

Multi-Language Highlight Extraction and Classification93%

Large language models perform excellently on cross-language summarization but may occasionally exhibit formatting deviations, requiring prompt constraints.

Feishu/Slack/Email/Webhook Push95%

Standard HTTP POST request with strong compatibility; failure retry mechanism is simple and reliable.

Strong Anti-Bot Site Scraping (Not Recommended)75%

Only for public RSS sources. Scraping strong anti-bot websites requires additional tools like Playwright, significantly increasing complexity.

Human checkpoint

Before first deployment, manually verify the validity of the AI API key and the connectivity of the webhook URL. Also, check if the RSS sources in sources.json are accessible.

Upgrade / downgrade path

If budget allows, upgrade to a paid AI model to improve summary quality. If resources are constrained, downgrade to scraping only titles without AI summarization, or reduce the number of RSS sources to lower API call costs.

When to use & prerequisites

Ideal for developers or product managers who want daily tech/industry news but lack server administration capabilities. The environment requires only a GitHub repository, an AI API key, and a webhook URL. The ideal use case is receiving AI-filtered and translated industry highlights every morning.

Ready-to-copy configs

.github/workflows/daily-digest.ymlyaml

定义每日定时触发、环境变量注入及多步骤执行流程的 GitHub Actions 工作流配置。

name: Daily Digest Bot

on:
  schedule:
    - cron: '0 0 * * *' # 00:00 UTC = 08:00 Beijing Time
  workflow_dispatch:

jobs:
  build-and-push:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: |
          pip install feedparser requests python-dotenv

      - name: Run Digest Script
        env:
          API_KEY: ${{ secrets.AI_API_KEY }}
          API_BASE_URL: ${{ secrets.AI_API_BASE_URL }}
          MODEL_ID: ${{ secrets.AI_MODEL_ID }}
          WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
        run: |
          python scripts/fetch_and_digest.py --config sources.json

      - name: Notify on Failure
        if: failure()
        run: |
          curl -X POST -H "Content-Type: application/json" \
            -d '{"text": "Daily Digest failed: ${{ github.run_id }}"}' \
            ${{ secrets.WEBHOOK_URL }}
sources.jsonjson

配置 RSS 源列表、去重策略及 AI 摘要生成的语言与分类偏好。

{
  "sources": [
    {
      "name": "TechCrunch",
      "url": "https://techcrunch.com/feed/",
      "category": "tech",
      "lang": "en"
    },
    {
      "name": "Hacker News",
      "url": "https://hnrss.org/frontpage",
      "category": "dev",
      "lang": "en"
    },
    {
      "name": "36Kr",
      "url": "https://36kr.com/feed",
      "category": "china-tech",
      "lang": "zh"
    }
  ],
  "deduplication": {
    "window_hours": 24,
    "strategy": "title_hash"
  },
  "ai_config": {
    "target_language": "zh-CN",
    "max_items": 10,
    "summary_style": "concise_bullets",
    "categories": ["tech", "dev", "china-tech"]
  }
}

AI Vibe Coding in 4 steps

  1. 1

    Initialize Project Structure and Dependencies

    Goal: Create a GitHub repository, configure the Python environment, and set up the basic file structure.

    Prompt
    Please help me initialize a Python project for daily news summarization. Create a requirements.txt including feedparser, requests, and python-dotenv. Also create a scripts/ directory and a sources.json configuration file, following the JSON example structure I provided.

    Verify: Check if requirements.txt includes the specified dependencies and if sources.json is in valid JSON format.

  2. 2

    Implement RSS Scraping and Deduplication Logic

    Goal: Implement reading sources from sources.json, scraping the latest entries, and deduplicating based on title hash.

    Prompt
    Write a Python script fetch_and_digest.py to read sources.json. Use feedparser to fetch the latest 10 news items from each source. Implement a deduplication function based on the MD5 hash of the title, keeping unique entries within the last 24 hours. Save the results as a JSON list.

    Verify: Run the script and check if the output JSON contains deduplicated news entries with no duplicate titles.

  3. 3

    Integrate AI Summarization and Multi-Language Translation

    Goal: Call the AI API to generate summaries and translate the scraped news into Chinese.

    Prompt
    Integrate an OpenAI-compatible API in the script. Read the deduplicated news list and construct a prompt requiring the AI to generate a Chinese summary for each item, not exceeding 50 characters, and categorized by category. Use environment variables API_KEY, API_BASE_URL, and MODEL_ID for configuration.

    Verify: Check if the API call was successful, if the output is a structured list of Chinese summaries, and if there are no garbled characters.

  4. 4

    Configure Webhook Push and GitHub Actions

    Goal: Implement pushing summary results to a webhook and configure the scheduled task.

    Prompt
    Add the push functionality to POST summary results to WEBHOOK_URL using requests. Also generate .github/workflows/daily-digest.yml, setting the cron expression to '0 0 * * *' and configuring environment variables. Ensure notifications are sent on failure.

    Verify: Manually trigger the workflow and check if Feishu/Slack received the message and if the GitHub Actions logs show no errors.

Pitfalls & fixes

  • RSS source URL changes or becomes invalid: Regularly monitor sources in sources.json; update URLs or remove sources promptly if scraping fails.
  • AI API rate limiting or timeouts: Set reasonable timeout values (e.g., 30s) and implement a simple retry mechanism (e.g., 3 retries with a 5s interval).
  • Timezone confusion: GitHub Actions defaults to UTC; ensure the cron expression is correctly converted to Beijing Time (UTC+8) to avoid incorrect push times.

FAQ

How do I add a new RSS source?

Simply add a new object to the sources array in sources.json, including name, url, category, and lang fields. No code changes are needed; it takes effect automatically on the next run.

What if the AI API call fails?

The script will catch exceptions and log them. If failures are continuous, you will receive an alert via the GitHub Actions failure notification mechanism. It is recommended to check the API key balance or network connectivity.

Can I push to other platforms like WeChat?

Yes, as long as the platform provides a webhook interface. You just need to modify the URL and payload format in the push section; the logic is similar to Feishu/Slack.

Related blueprints

Zero-Cost Daily News Summary Bot: GitHub Actions Scheduled Scraping and Multi-Language Push · GrokHome