Loading...
Loading...
Automatically summarize the daily top news from multiple news websites using browser automation to access and read news content. Applicable for tasks such as user requests like "Summarize today's news", "Get today's top news", "Generate news summary"; or user questions like "What are the important news today?" and "Help me check today's headlines on news websites". Supports Chinese news websites (Sina, NetEase, Tencent, etc.) and international news websites (BBC, Reuters, etc.), generating detailed summary reports in Markdown format.
npx skill4agent add yulong-me/skills daily-news-summarizer~/.daily-news-config.yaml# Use browser_navigate tool to navigate to the website
mcp__playwright__browser_navigate(url="https://news.sina.com.cn")# Use browser_snapshot to get page accessibility snapshot
mcp__playwright__browser_snapshot()# Analyze news links from snapshot
news_links = []
for item in snapshot:
if '标题' in item or 'title' in str(item).lower():
# Extract title and link
news_links.append({
'title': extract_title(item),
'url': extract_url(item)
})# Navigate to the article page
mcp__playwright__browser_navigate(url=news_url)
# Get article content snapshot
mcp__playwright__browser_snapshot()Please generate a 5-sentence detailed summary for the following news article.
Title: {title}
Article Content:
{content}
Summary Requirements:
1. Accurately summarize the core content of the article
2. Include key facts and details
3. Be objective and neutral without adding personal opinions
4. Use concise and clear language
5. A total of 5 sentences, each with rich information
Please generate the summary:Please generate an overall overview (3-5 sentences) for the following {count} news items, highlighting the most important news topics and trends of the day:
List of News Titles:
{titles}
Please generate a brief overall overview:# Daily News Summary
**Date**: January 07, 2024
**Generation Time**: 08:00
**Number of News Items**: 15
## 📰 Today's Overview
Overall overview of today's top news, 3-5 sentences summarizing the most important news topics of the day...
## 📋 Detailed News
### 1. News Title
**Publish Time**: 2024-01-07 10:30
**Source**: [Sina News](https://example.com/article)
**Summary**: First sentence summary. Second sentence summary. Third sentence summary. Fourth sentence summary. Fifth sentence summary, including key details.
---
### 2. Another News Title
**Publish Time**: 2024-01-07 09:15
**Source**: [NetEase News](https://example.com/article2)
**Summary**: Summary content...
---
## Statistical Information
- **Total News Items**: 15
- **News Sources**: Sina News, NetEase News, BBC News
- **Categories**: Current Affairs, Finance, Technology, International
*This summary is automatically generated by AI, content sourced from major news websites*~/Daily-News-Summary/news-summary-{date}.mdWrite(file_path="~/Daily-News-Summary/news-summary-2024-01-07.md", content=markdown_content)mcp__playwright__browser_tabs(action="new")mcp__playwright__browser_close()✓ Accessing Sina News homepage...
✓ Extracted 20 news items
✓ Generating summary (1/20)...
✓ Generating summary (2/20)...
...
✓ Generating overall overview...
✓ Summary saved to ~/Daily-News-Summary/news-summary-2024-01-07.md~/.daily-news-config.yamlnews_sources:
- name: "Sina News"
url: "https://news.sina.com.cn"
enabled: true
language: "zh"
- name: "BBC News"
url: "https://www.bbc.com/news"
enabled: true
language: "en"
output:
directory: "~/Daily-News-Summary"
format: "markdown"
summary:
max_articles: 20
sentences_per_article: 5Read(file_path="~/.daily-news-config.yaml")