RSS reader is a command-line utility that receives RSS URL and prints results in a human-readable format.
For install come to the root of repository and type:
pip3 install .or
python3 setup.py installUtility provide the following interface:
rss_reader [-h] [--version] [--json] [--verbose] [--limit LIMIT] -
positional arguments:
sourceRSS URL
-
optional arguments:
-h, --helpshow this help message and exit--versionPrint version info--jsonPrint result as JSON in stdout--verboseOutputs verbose status messages--limit LIMITLimit news topics if this parameter provided--date DATEReturns news for requested date and source if this parameter provided. Date format is YYYYmmdd--to-fb2 PATHConvert feed to fb2 format and save to given file path--to-html PATHConvert feed html format and save to given file path
Notes:
- JSON schema described in json_feed.json.
- By default log messages writes to home/.rss/rss_reader.log,
with
--verboseargument messages prints to stdout too. - Can run the application by
python3 rss_reader
orpython3 rss_reader/main.pyfrom the root of the repository.
To test come to root directory of the repository and type
python3 tests From version 3.0 all RSS feeds stored in local SQLite database while reading. You can find a database in /home/.rss/feeds.db.
The cashed news can be read by optional argument --date. The news from the specified day and source will be printed out. If the news is not found returns an error.
From version 4.0 added converting news to fb2 and html files.
Files saves by path given after optional argument --to-fb2 or --to_html. These arguments can be used together. Given path should include the file name and only exist directories.
Example:
rss_reader https://source.net/rss --to-fb2 ~/feed.fb2 --to-html ~/feed.html