The CLI has the following interface:
usage: rss_reader.py [-h] [--json] [--limit LIMIT]
source
Pure Python command-line RSS reader.
positional arguments:
source RSS URL
optional arguments:
-h, --help Help message and exit
--json Print result as JSON in stdout
--limit LIMIT Limit news topics if this parameter is provided- If the
limitis not specified, then the user should get all available feeds. - If the
limitis larger than the feed size, then the user should get all available news. - The
limitargument should also affect JSON generation - In the case of using the
--jsonargument, utility converts the news into the JSON format.
- For
<channel>element:<title>is equal to Feed<link>is equal to Link<lastBuildDate>is equal to Last Build Date<pubDate>is equal to Publish Date<language>is equal to Language<category>is equal to a list of available Categories.<managinEditor>is equal to Editor<description>is equal to Description<item>for item in itemseach item is separated by a custom separator, and all items within except for the description are stuck together.
- For
<item>element:<title>is equal to Title<author>is equal to Author<pubDate>is equal to Published<link>is equal to Link<category>is equal to a list of available Categories.<description>is on a separate line without any name.
Feed: BBC News
Link: https://www.bbc.co.uk/news
Last Build Date: Fri, 28 Mar 2025 20:21:17 GMT
Language: en-gb
Description: BBC News - News Front Page
Title: Watch: Moment baby is born on Bangkok street after quake evacuation
Published: Fri, 28 Mar 2025 18:30:40 GMT
Link: https://www.bbc.com/news/videos/c7898myzxvpo
A woman was seen giving birth to a baby shortly after evacuating from a hospital.
Title: Student jailed for 39 years for beach murder had 'rage against women'
Published: Fri, 28 Mar 2025 15:45:34 GMT
Link: https://www.bbc.com/news/articles/cz0309m2vddo
Nasen Saadi was described in court as a "social misfit" who committed his crimes "to feel powerful".
Title: 'Then, the phone rang': BBC's Mark Lowen on being deported from Turkey
Published: Fri, 28 Mar 2025 17:04:53 GMT
Link: https://www.bbc.com/news/articles/c0jgj47zx53o
The BBC correspondent was deported from Turkey this week after covering ongoing mass protests in the country.JSON output contains exact names of the tags.
{
"title": "BBC News",
"link": "https://www.bbc.co.uk/news",
"lastBuildDate": "Fri, 28 Mar 2025 20:09:32 GMT",
"language": "en-gb",
"description": "BBC News - News Front Page",
"items": [
{
"title": "Watch: Moment baby is born on Bangkok street after quake evacuation",
"pubDate": "Fri, 28 Mar 2025 18:30:40 GMT",
"link": "https://www.bbc.com/news/videos/c7898myzxvpo",
"description": "A woman was seen giving birth to a baby shortly after evacuating from a hospital."
},
{
"title": "Student jailed for 39 years for beach murder had 'rage against women'",
"pubDate": "Fri, 28 Mar 2025 15:45:34 GMT",
"link": "https://www.bbc.com/news/articles/cz0309m2vddo",
"description": "Nasen Saadi was described in court as a \"social misfit\" who committed his crimes \"to feel powerful\"."
},
{
"title": "'Then, the phone rang': BBC's Mark Lowen on being deported from Turkey",
"pubDate": "Fri, 28 Mar 2025 17:04:53 GMT",
"link": "https://www.bbc.com/news/articles/c0jgj47zx53o",
"description": "The BBC correspondent was deported from Turkey this week after covering ongoing mass protests in the country."
}
]
}