BBC News CLI
A command-line tool for fetching and reading BBC news articles directly from your terminal.
Features
- 📰 Browse headlines from 12 BBC news categories
- 📖 Read full article content with clean, wrapped text formatting
- 🔍 Extract article IDs from RSS feeds for quick access
Installation
pip install -e .
Usage
View Category Headlines
Fetch the latest headlines from a specific BBC category:
bbc news category [CATEGORY] [--limit N]
Available categories:
frontpage(default)business,entertainment,health,educationpolitics,technology,worldengland,scotland,wales,in-depth
Examples:
# Get top 10 frontpage headlines
bbc news category frontpage
# Get top 5 business headlines
bbc news category business --limit 5
Output shows article IDs you can use to read full content:
# ID TITLE
────────────────────────────────────────────────────────────────────────────────
1 cgk0j71g417o UK forecast to see biggest hit to growth...
2 c5y8d721q18o Rocket stocks soar on report Musk's SpaceX...
Read Full Article
Retrieve and display the full content of a BBC article:
bbc news article <ARTICLE-ID>
Example:
bbc news article c5y8d721q18o
Options
-v, --verbose— Enable verbose logging for debugging
Dependencies
- Python ≥ 3.10
- click
- feedparser
- beautifulsoup4
- requests
Development
The CLI uses a plugin-based command system. Add new commands by creating cmd_*.py files in src/core_cli/commands/.
License
MIT
Metadata
Release files for bbc-news-cli 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bbc_news_cli-1.0.0.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bbc_news_cli-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / bbc_news_cli-1.0.0.tar.gz
| Download URL | bbc_news_cli-1.0.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02545d4f9b83e8ee58a688410e88f174178d9f43c2d2a9e9725d75ce91b59aef
|
|
BLAKE2b-256 checksum How to use checksums |
580204403025980ae37008b52bb4b18ecefe4d15a5d5c7d47a1b241e29d7d3ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / bbc_news_cli-1.0.0-py3-none-any.whl
| Download URL | bbc_news_cli-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2807aceea1ae2fc042bcbccaa4fc7aea9495df30c7d28ecbc990381f6304d6fb
|
|
BLAKE2b-256 checksum How to use checksums |
27ad0dc8026b78867ba99b22b2e58aed991bc274357cb846fa1ecb2d778ffdb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|