A Python script that reads RSS feeds from the web and shows the latest news in a clean, readable format. You can view the feed in the console or get it as JSON, with options to limit the number of news items.
- Parse channel:
title,link,description,language,lastBuildDate,managingEditor,category. - Parse items:
title,link,description,author,pubDate,category. - Console output with item separators.
- JSON output (
--json). - Limit items (
--limit N).
Feed: Yahoo News - Latest News & Headlines
Link: https://news.yahoo.com/rss
Description: Yahoo news description
Title: Some Headline
Published: Thu, 25 Sep 2025 12:34:56 +0000
Link: https://news.yahoo.com/some-news
Some description text here.
--------------------------------------------------
Title: Another Headline
Published: Thu, 25 Sep 2025 10:21:43 +0000
Link: https://news.yahoo.com/another-news
Another description here.
{
"title": "Yahoo News - Latest News & Headlines",
"link": "https://news.yahoo.com/rss",
"description": "Yahoo news description",
"items": [
{
"title": "Some Headline",
"pubDate": "Thu, 25 Sep 2025 12:34:56 +0000",
"link": "https://news.yahoo.com/some-news",
"description": "Some description text here."
}
]
}