maetthu / republik-feeder

RSS feed generator service for republik.ch
MIT License
12 stars 2 forks source link
republik rss

republik-feeder

build release

Quick and simple RSS service for republik.ch content. Listens for HTTP requests and returns an RSS feed for most recent articles and narrated articles as a podcast feed.

Note A paid republik.ch account is required for this tool to work. If the feed returns an empty list, make sure your subscription is already active.

Feeds

$ http http://localhost:8080/articles
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Date: Sun, 24 May 2020 20:54:45 GMT
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Republik - RSS Feed</title>
    <link>https://www.republik.ch</link>
    <description>Republik - RSS Feed</description>
    <managingEditor>kontakt@republik.ch (Republik)</managingEditor>
    <pubDate>Sun, 24 May 2020 22:54:45 +0200</pubDate>
    <item>
      ...
    </item>
  </channel>
</rss>

<?xml version="1.0" encoding="UTF-8"?>

Republik - RSS Feed https://www.republik.ch Republik - Podcast Feed go podcast v1.3.1 (github.com/eduncan911/podcast) de-CH Fri, 28 Oct 2022 21:26:56 +0200 Fri, 28 Oct 2022 21:26:56 +0200 ...

## Installation

* REPUBLIK_FEEDER_COOKIE: Contents of the connect.sid cookie after login in browser.
* REPUBLIK_FEEDER_URL: (optional) Root URL where this service is reachable, e.g https://example.org/feeds/republik  
* REPUBLIK_FEEDER_ARTICLE_LIMIT: (optional) Number of articles in feed (default: 20)  

### Manual

* [Download tarball from release page](https://github.com/maetthu/republik-feeder/releases)
* Run

$ export REPUBLIK_FEEDER_COOKIE="s%3Asomething..." REPUBLIK_FEEDER_URL="https://example.org/feeds/republik" REPUBLIK_FEEDER_ARTICLE_LIMIT="25" $ ./republik-feeder :8080


### Docker

$ export REPUBLIK_FEEDER_COOKIE="s%3Asomething..." REPUBLIK_FEEDER_URL="https://example.org/feeds/republik" REPUBLIK_FEEDER_ARTICLE_LIMIT="25" $ docker run -p 8080:8080 -e REPUBLIK_FEEDER_COOKIE=$REPUBLIK_FEEDER_COOKIE -e $REPUBLIK_FEEDER_URL=REPUBLIK_FEEDER_URL ghcr.io/maetthu/republik-feeder/republik-feeder:latest


### Docker compose

version: '3' services: republik-feeder: image: "ghcr.io/maetthu/republik-feeder/republik-feeder:latest" user: "65534:65534" ports: