Get notified for new Reddit posts that match your search criteria.
- A Reddit account
- Reddit API
client_id
andclient_secret
, see here for more detailed instructions - A notification service supported by Apprise and the required API keys or other configuration for your chosen services
- Have Python 3.8+ or Docker installed
This app can be used stand-alone and run with Python, or it is also available as a Docker image.
If using Python, install the requirements first:
pip install -r requirements.txt
The configuration is stored inside a yaml file, you can copy config.yaml.example
into a new file config.yaml
use that as a base, the following sections are all required:
- Apprise configuration urls as a list, for your chosen providers
apprise: - discord://webhook_id/webhook_token - join://apikey/device - slack://TokenA/TokenB/TokenC/
- Reddit configuration with your app details, it is also recommended to put your username in the
agent
field but it can be anything you wantreddit: client: xxxxxxxxxx secret: xxxxxxxxxxxxxxxxxxxx_xxxxxxxxxx agent: reddit-post-notifier (u/xxxxxx)
- Subreddit configuration with your desired search terms for each subreddit you want to monitor, the following example monitors r/GameDeals for any post that includes the words 'free' OR '100%' in the title (make sure this key appears under the
reddit
key, with proper indentation, and using single quotes if needed)subreddits: gamedeals: - 'free' - '100%'
RPN_CONFIG
environment variable can be used to change the location of the config file, the default isconfig.yaml
relative to whereapp.py
is,app/config.yaml
in the Docker image.RPN_LOGGING
environment variable can be set toTRUE
to enable logging each matched post to the console as well.- Docker-Compose configuration:
version: "3.8"
services:
reddit-post-notifier:
container_name: reddit-post-notifier
image: ghcr.io/rafhaanshah/reddit-post-notifier:latest
restart: unless-stopped
volumes:
- ./config.yaml:/app/config.yaml
- Stand-alone:
python app.py
- Docker:
docker run -v /path/to/your/config.yaml:/app/config.yaml ghcr.io/rafhaanshah/reddit-post-notifier:latest
- Check your
yaml
configuration is valid: http://www.yamllint.com - Apprise does not log even if your configuration is invalid or not working, you can check if your urls work by installing the Apprise CLI: https://github.com/caronc/apprise/wiki/CLI_Usage
- Check the console logs for API errors, the app uses PRAW for accessing the Reddit API and you may find something in their docs: https://praw.readthedocs.io/en/latest/