Skip to content

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.

Notifications You must be signed in to change notification settings

peroje1/rss-parser-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSS Feed Parser (Python)

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.


Features

  • 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).

Example Console Output

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.

Example JSON output

{
  "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."
    }
  ]
}

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages