Dom Rodriguez df52406dfe
Improve Exception handling, and catch explicit Exceptions
This commit improves Exception handling, and made some changes to
try/catch blocks, where the `KeyError` is now explicitly caught. If in
the future, we have reports of other Exceptions being caught, we can
include those in the handling.

For now, I've used BaseException for two try/catch blocks. I need to
check what exceptions can happen there.

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
2022-09-13 19:43:58 +01:00
2022-06-25 13:03:35 +02:00
2022-06-19 18:32:50 +02:00
2022-06-19 18:17:57 +02:00
2020-08-18 00:24:10 +01:00
2022-06-28 05:57:07 -07:00
2022-06-19 18:17:57 +02:00
2022-06-25 13:00:47 +02:00

RSSingle

Generates an RSS file from the list of other feeds (RSS/Atom/JSON). Very handy when you want to centralise the list of your feeds in one place and all your devices feed from the same place.

RRSingle

Run

  1. Download the binary.

Linux

wget https://github.com/tanrax/RSSingle/releases/download/v1.0.0/rssingle

Windows

wget https://github.com/tanrax/RSSingle/releases/download/v1.0.0/rssingle.exe
  1. Gives execution permissions.
chmod +x rssingle
  1. In the same directory as the binary, you can create a local config.yml file in this format:
title: My RSS Feed
description: My customised RSS feed with technology news
url: https://www.example.com
output: rss.xml
feeds:
  - https://programadorwebvalencia.com/feed/
  - https://republicaweb.es/feed/

If not, you can download the example in the repository.

curl -o config.yml https://raw.githubusercontent.com/tanrax/RSSingle/master/config.yml
  1. Run the binary.
./rssingle 

A file called rss.xml will be created.

Development

Compiling

pyinstaller --onefile rssingle.py

Old versions

docker run --rm --volume $PWD:/app python:3.8-buster /bin/bash -c "cd /app; pip3 install -r requirements.txt; pyinstaller --onefile rssingle.py"

You will find the binary in dist.

Thanks

@shymega for his original project singlerss.

Description
Merge multiple feeds (RSS/Atom/JSON) into a single RSS feed.
Readme 187 KiB
Languages
Python 95.7%
Dockerfile 4.3%