reddit_filter

Hex.pmHex DocsLicense

em_filter agent for Reddit using the public JSON API.

Combines two complementary search modes running in parallel:

No API key needed. Reddit requires a descriptive User-Agent header — this is handled automatically.

Setup

Rename reddit_config.json.sample to reddit_config.json and configure your subreddits:

{
    "subreddits": [
        "erlang",
        "programming",
        "linux"
    ],
    "search_reddit": true,
    "listing": "hot"
}

listing accepts: hot, new, top, rising.

Set search_reddit to false to disable global search and only scan the configured subreddits.

Usage

Add reddit_filter to your dependencies, then start it as an OTP application. It registers itself with em_disco automatically on startup.

For a topic-specific filter, create a wrapper application that copies its own priv/reddit_config.json to the working directory before starting reddit_filter.