Skip to main content

RSS reader for final task in Python educational course

Project description

bold**CLI utility for reading RSS news from given URL**bold

Provides rss-reader command that receives single positional argument “source”, that should be the URL for rss news. Utility will collect data from that URL and print out collected data in human readable format.

Usage example:

rss-reader “https://news.yahoo.com/rss/” –limit 1

Output:

Feed: Yahoo News - Latest News & Headlines

Title: Woman whose rape DNA led to her arrest sues San Francisco

Date: 2022-09-12T20:58:22Z

Link: https://news.yahoo.com/woman-whose-rape-dna-led-205822755.html

Optional arguments:

--limit

Set the maximum amount of output messages

--verbose

Increase output verbosity

--version

Show current version

--json

Set output format to JSON.

--date

Show cached entry for given date in %Y%m%d format

Example of JSON output:

{“Feed”: “Yahoo News - Latest News & Headlines”, “Entries”: [{“Title”: “Woman whose rape DNA led to her arrest sues San Francisco”, “Date”: “2022-09-12T20:58:22Z”, “Link”: “https://news.yahoo.com/woman-whose-rape-dna-led-205822755.html”},]}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rss-reader-bektur-3.1.2.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file rss-reader-bektur-3.1.2.tar.gz.

File metadata

  • Download URL: rss-reader-bektur-3.1.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for rss-reader-bektur-3.1.2.tar.gz
Algorithm Hash digest
SHA256 9d99ffd304a41b4717668e2294deb5c3be2c4eb656f71c16ba236fe17b60f32d
MD5 5e2fd76ae980f58976ee8b80807ba639
BLAKE2b-256 f9671e42e03a593d07ebbd2cfbc61db2a583dc2ed5fb72214a2d88acb8c70fa1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page