self-hosted-cookbook/apps/rss/miniflux-filter.md
Tomasz Borychowski a18c856eb9 rss
2020-11-01 15:51:25 +00:00

1.3 KiB

Miniflux-filter

Filter for miniflux - "mark as read" all unwanter articles. I created that before miniflux added some basic filtering. Maybe still useful to someone. The difference from the built-in filtering is that this marks articles as read, whereas the built-in filtering filters articles out BEFORE adding them to the DB.


docker-compose.yml

---
version: '3'
services:
  miniflux-filter:
    image: tborychowski/miniflux-filter
    container_name: miniflux-filter
    restart: unless-stopped
    environment:
      - TZ=Europe/Dublin
      - HOST=https://rss.example.com
      - API_KEY=<YOUR MINIFLUX API KEY>
      - CHECK_EVERY_S=300 # 300 seconds = 5 min
    ports:
      - "5011:3000"
    volumes:
      - ./filters.yml:/app/filters.yml
      - ./logs:/app/logs	# optional

filters.yml

This is a simple list of matchers: it loops through the unread articles and for every one of them - it loops through this list. If the article URL matches a filter url and the article title contains the string from title field - this article will be marked as read.

filters:
  - url: 'feed.example.com'   # match feed url
    title: 'windows 10'       # match title
  - url: 'feed.example.com'
    title: 'sponsored'
  - url: 'feed.another.com'
    title: 'spam'