Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gfjaru/reddit-watcher
👀 Grab latest post from subreddit
https://github.com/gfjaru/reddit-watcher
Last synced: 5 days ago
JSON representation
👀 Grab latest post from subreddit
- Host: GitHub
- URL: https://github.com/gfjaru/reddit-watcher
- Owner: gfjaru
- Created: 2020-09-09T23:32:51.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-15T10:21:03.000Z (about 4 years ago)
- Last Synced: 2024-08-01T16:34:17.392Z (3 months ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reddit-watcher
👀 have an eyes on subreddit, always get latest post.
## Requirements
API Keys of course, get one here -> https://www.reddit.com/prefs/apps
Discord webhook -> https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
## Installation
(run locally) set environment variable for:
- DISCORD_WEBHOOK_URL
- DISCORD_WEBHOOK_NAME
- DISCORD_WEBHOOK_AVATAR
- REDDIT_CLIENT_ID
- REDDIT_CLIENT_SECRET
- REDDIT_USERNAME
- REDDIT_PASSWORD
- REDDIT_SUBREDDITThen install dependencies, just type
```
pip install -r requirements.txt
```Run the app.
## Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
***idk how to deal with this, run worker manually after deploying, go to heroku app > resource > worker
Watchout for free users, workers never sleep, free user without verified credit card got 400hours per month
---
Originally created for grabbing meme from r/Hololive.