Skip to content

Bayashat/RSS-Scrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSS Reader

A pure command-line RSS reader written in pure Python.

Overview

RSS Reader is a lightweight tool for parsing and displaying information from RSS feeds. It can handle both plain text and JSON output formats.

Features

  • Parse XML-formatted RSS feeds
  • Display information about RSS channels and items
  • Format output as plain text or JSON

Installation

pip install -r requirements.txt

Usage

cd rss_reader
python main.py [source] [--json] [--limit LIMIT]

Options

`source`: RSS URL
`--json`: Print result as JSON in stdout
`--limit LIMIT`: Limit the number of news topics

Examples

  1. Parse an RSS feed and display information in plain text:
python main.py https://example.com/rss-feed
  1. Parse an RSS feed and display information in JSON format:
python main.py https://example.com/rss-feed --json
  1. Limit the number of displayed news topics:
python main.py https://example.com/rss-feed --limit 5

About

Pure Python command-line RSS reader that parse the RSS document and provide two formatted outputs: JSON and the standard output.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages