mirror of
https://github.com/hanzoskill/bbc-news.git
synced 2026-10-30 21:12:53 +00:00
1.7 KiB
1.7 KiB
BBC News Skill
A Bot skill for fetching BBC News stories from various sections and regions via RSS feeds.
Features
- π° Multiple Sections: Top stories, UK, World, Business, Politics, Health, Education, Science, Technology, Entertainment
- π UK Regional News: England, Scotland, Wales, Northern Ireland
- πΊοΈ World Regions: Africa, Asia, Australia, Europe, Latin America, Middle East, US & Canada
- π Flexible Output: Text or JSON format
- βοΈ Customizable: Limit number of stories
Installation
Via Skills
skills install bbc-news
Manual Installation
# Clone the repo
git clone https://github.com/ddrayne/bbc-news-skill.git ~/.bot/skills/bbc-news
# Install dependencies
pip3 install feedparser
Usage
With Bot
Ask your agent:
- "What's the latest BBC news?"
- "Show me UK technology news from BBC"
- "Get top 5 Scotland stories"
Direct Script Usage
# Top stories (default)
python3 ~/.bot/skills/bbc-news/scripts/bbc_news.py
# Specific section
python3 ~/.bot/skills/bbc-news/scripts/bbc_news.py technology
# Limit results
python3 ~/.bot/skills/bbc-news/scripts/bbc_news.py uk --limit 5
# JSON output
python3 ~/.bot/skills/bbc-news/scripts/bbc_news.py world --json
# List all sections
python3 ~/.bot/skills/bbc-news/scripts/bbc_news.py --list
Available Sections
Main Sections
top, uk, world, business, politics, health, education, science, technology, entertainment
UK Regional
england, scotland, wales, northern-ireland
World Regions
africa, asia, australia, europe, latin-america, middle-east, us-canada
Dependencies
- Python 3
- feedparser (
pip3 install feedparser)
License
MIT