Skip to content

EmergenceSystem/reddit_filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reddit_filter

Hex.pm Hex Docs License

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.

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.

About

em_filter lib to search Reddit via the public JSON API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages