Guide for setting things up
Ayam Dobhal edited this page Oct 16, 2019
·
4 revisions
- An Android device.
- Termux. Get it from Google Play or F-Droid.
- Termux-API. Get it from Google Play or F-Droid.
- Launch Termux and let it configure.
- Install git.
pkg install git
- Install python.
pkg install python
- Clone the repository.
git clone https://github.com/AyamDobhal/subreddit-notifier
- Navigate to the repository directory.
cd <path-to-the-dir>
- Install the requirements.
pip install -r requirements.txt
- If everything has gone fine so far, go to this link and follow these steps to create your new app.
- Login to reddit if you haven't already.
- Select create app
- Enter the name of your app. e.g. subreddit-notifier.
- Select script.
- Add description and url description.(optional)
- For redirect uri, fill in this:
https://localhost:8080
- Press create new app.
- Get your client_key and client_secret.
- Export your client_key, client_secret and the name of the subreddit you want as environment variables.
export REDDIT_APP_KEY=<client_key>
export REDDIT_APP_SECRET=<client_secret>
export SUBREDDIT=<name of subreddit of your choice>
- Now that you're done with everything, run the following command to get the script running:
python main.py