- Python script using PRAW with docker build
- Will edit, then delete all comments, and delete all posts
- By default edits comments with a random string
- Logs to stdout
- Each deletion request is delayed by 5 seconds to prevent reaching API limit (edit REQUEST_DELAY_IN_SECONDS constant to adjust)
Reddit is periodically restoring comments, this will continuously remove them.
This was created as a basis to learn how to package a python script into a docker container.
- Clone this repo
- Copy the example docker-compose.yml,example to docker-compose.yml
- Add reddit credentials, and edit any other options
- docker-compose up --build
- Visit Reddit app preferences at https://www.reddit.com/prefs/apps
- Click [create another app...] at the bottom
- Give your app a name
- Choose "script" as the type
- Put whatever you want as the redirect uri (ie. http://localhost/)
- Click create app
- You will then be given a clientid (its the random string under the name of your app), and a client secret