Remove duplicate subreddits from a group of multireddits
- Clone the repository
- Get a Reddit client ID and client secret
- Paste your client ID and client secret in a new file named config.py in the root of the repository (DO NOT COMMIT THIS FILE)
- Optionally put your account credentials in the config.py file (DO NOT COMMIT THIS FILE)
- Enter your multireddits in a new file named multireddits.json in the root of the repository
- Set up the venv:
py -m venv venv
- Enter the venv:
.\venv\Scripts\Activate.ps1
- Install the requirements:
pip install -r requirements.txt
- Run the script:
py main.py
Example config.py (DO NOT COMMIT THIS FILE)
CLIENT_ID = ''
CLIENT_SECRET = ''
PASSWORD = ''
USERNAME = ''
Example multireddits.json
{
"multireddits": [
"multireddit1",
"multireddit2"
]
}
--write (-w)
- Write data without confirming
- You will need to use this argument in order for the script to remove duplicate subreddits from your chosen multireddits
py main.py -w
py main.py --write