daily-news-60s
71
总安装量
6
周安装量
#5865
全站排名
安装命令
npx skills add https://github.com/vikiboss/60s-skills --skill daily-news-60s
Agent 安装分布
opencode
5
codex
5
github-copilot
5
amp
4
kimi-cli
4
gemini-cli
4
Skill 文档
æ¯å¤©60ç§è¯»æä¸ç – Daily News Skill
This skill helps AI agents fetch and present daily curated news from the 60s API, which provides 15 selected news items plus a daily quote, updated every 30 minutes.
When to Use This Skill
Use this skill when users:
- Ask for today’s news or current events
- Want a quick daily briefing
- Request news summaries in Chinese
- Need historical news from a specific date
- Want news in different formats (text, markdown, image)
API Endpoint
Base URL: https://60s.viki.moe/v2/60s
Method: GET
Parameters
-
date(optional): Date in YYYY-MM-DD format (e.g., “2024-01-15”)- If not provided, returns the latest available news
-
encoding(optional): Output formatjson(default): Structured JSON datatext: Plain text formatmarkdown: Formatted markdownimage: Redirect to image URLimage-proxy: Returns image binary data
How to Use
Basic Usage – Get Latest News
curl "https://60s.viki.moe/v2/60s"
import requests
response = requests.get('https://60s.viki.moe/v2/60s')
news = response.json()
print(f"ð° {news['date']} æ°é»ç®æ¥")
print(f"ååï¼{news['lunar_date']} {news['day_of_week']}\n")
for i, item in enumerate(news['news'], 1):
print(f"{i}. {item['title']}")
print(f"\nð å¾®è¯ï¼{news['tip']}")
Get News for Specific Date
response = requests.get('https://60s.viki.moe/v2/60s', params={'date': '2024-01-15'})
Get News as Markdown
response = requests.get('https://60s.viki.moe/v2/60s', params={'encoding': 'markdown'})
markdown_content = response.text
Get News as Plain Text
response = requests.get('https://60s.viki.moe/v2/60s', params={'encoding': 'text'})
text_content = response.text
Response Format (JSON)
{
"date": "2024-01-15",
"day_of_week": "ææä¸",
"lunar_date": "è
æåäº",
"news": [
{
"title": "æ°é»æ é¢1",
"link": "https://example.com/news1"
},
...
],
"tip": "æ¯æ¥å¾®è¯å
容",
"image": "https://..../image.png",
"updated": "2024-01-15 09:00:00",
"updated_at": 1705280400000,
"api_updated": "2024-01-15 09:00:00",
"api_updated_at": 1705280400000
}
Example Interactions
User Request: “ä»å¤©æä»ä¹æ°é»ï¼”
Agent Response:
ð° 2024å¹´1æ15æ¥ ææä¸ ååè
æåäº
ã仿¥è¦é»ã
1. æ°é»æ é¢1
2. æ°é»æ é¢2
3. æ°é»æ é¢3
...
ð å¾®è¯ï¼[æ¯æ¥å¾®è¯å
容]
User Request: “Get yesterday’s news”
from datetime import datetime, timedelta
yesterday = (datetime.now() - timedelta(days=1)).strftime('%Y-%m-%d')
response = requests.get('https://60s.viki.moe/v2/60s', params={'date': yesterday})
Best Practices
- Caching: The API has built-in caching, responses are very fast
- Update Frequency: News updates every 30 minutes, typically by 10 AM
- Error Handling: Always check response status and handle errors gracefully
- Format Selection: Use JSON for structured data, markdown for formatted output, text for simple presentation
- Date Validation: When requesting specific dates, ensure the date format is YYYY-MM-DD
Common Use Cases
1. Daily News Bot
def send_morning_news():
news = requests.get('https://60s.viki.moe/v2/60s').json()
message = f"æ©å®ï¼ä»å¤©æ¯ {news['date']} {news['day_of_week']}\n\n"
message += "\n".join([f"{i}. {item['title']}" for i, item in enumerate(news['news'][:5], 1)])
message += f"\n\n{news['tip']}"
return message
2. News Summary for Chatbots
def get_news_summary(count=5):
news = requests.get('https://60s.viki.moe/v2/60s').json()
return {
'date': news['date'],
'headlines': [item['title'] for item in news['news'][:count]],
'quote': news['tip']
}
3. Historical News Lookup
def get_historical_news(date_str):
response = requests.get('https://60s.viki.moe/v2/60s', params={'date': date_str})
if response.ok:
return response.json()
return None
Troubleshooting
Issue: No data returned
- Solution: Try requesting previous dates (yesterday or the day before)
- The service tries latest 3 days automatically
Issue: Image not loading
- Solution: Use
encoding=image-proxyinstead ofencoding=image - The proxy endpoint directly returns image binary data
Issue: Old date requested
- Solution: Data is only available for recent dates
- Check the response status code
API Characteristics
- â Free: No authentication required
- â Fast: Millisecond-level cached responses
- â Reliable: Global CDN acceleration
- â Updated: Every 30 minutes
- â Quality: 15 curated news items from authoritative sources