em_filter agent for Reddit using the public JSON API.
Combines two complementary search modes running in parallel:
- Subreddit listing — fetches hot/new/top/rising posts from configured subreddits and filters by keyword. No authentication required.
- Global search — uses Reddit's search endpoint across all of Reddit or restricted to configured subreddits.
No API key needed. Reddit requires a descriptive User-Agent header — this is handled automatically.
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.
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.