Skip to content

kas/reddit-multireddit-deduplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reddit-multireddit-deduplication

Remove duplicate subreddits from a group of multireddits

Usage

  1. Clone the repository
  2. Get a Reddit client ID and client secret
  3. 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)
  4. Optionally put your account credentials in the config.py file (DO NOT COMMIT THIS FILE)
  5. Enter your multireddits in a new file named multireddits.json in the root of the repository
  6. Set up the venv: py -m venv venv
  7. Enter the venv: .\venv\Scripts\Activate.ps1
  8. Install the requirements: pip install -r requirements.txt
  9. 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"
    ]
}

Optional arguments

--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

About

Remove duplicate subreddits from a group of multireddits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages