Module reddit_filter_app

Reddit search agent using the public JSON API.

Description

Reddit search agent using the public JSON API.

Two search modes running in parallel:

Subreddit listing — fetches hot/new posts from configured subreddits and filters by keyword.

Reddit search — uses reddit.com/search.json to search across all of Reddit or restricted to configured subreddits.

Deduplication by URL is handled upstream by the Emquest pipeline.

Capability cascade

base_capabilities/0 extends em_filter:base_capabilities(). Topic-specific filters extend reddit_filter_app:base_capabilities():

reddit_config.json format: { "subreddits": ["erlang", "programming", "linux"], "search_reddit": true, "listing": "hot" }

listing can be: "hot" | "new" | "top" | "rising"

Handler contract: handle/2 (Body, Memory) -> {RawList, Memory}.

Function Index

base_capabilities/0
handle/2

Function Details

base_capabilities/0

base_capabilities() -> [binary()]

handle/2

handle(Body, Memory) -> any()


Generated by EDoc