Skip to content

This script will automatically delete your Reddit comments that are older than x days.

Notifications You must be signed in to change notification settings

DaLuSt/RedditCommentCleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Comment Cleaner v1.8

This Python script edits any Reddit comments older than x amount of days to "." and then deletes them.

-SYSTEM CONFIGURATION-

  1. Install Python 3.

  2. Install praw by running the following code in terminal:

pip install praw

-REDDIT CONFIGURATION-

  1. Navigate to https://www.reddit.com/prefs/apps

  2. Click "Create application" at the bottom of the page

  3. Select "script"

  4. Fill out the discription, and both URL and URI fields (you can point both fields to this Github page)

  5. Click 'create app'

image

-SCRIPT CONFIGURATION-

Once your app is created, you will see your client ID, and secret. Both are highlighted below:

image

  1. When the script is executed, you will be prompted to enter your Client ID, secret, username and password.

  2. The last prompt will ask you how old the comments should be that are being deleted. For example, if you enter "4", all comments older than 4 days old will be deleted.

-RUNNING THE SCRIPT-

  1. Copy commentCleaner.py code into notepad and save it in whatevery directory you prefer as commentCleaner.py, alternatively you can copy the repository using the following command in Windows terminal:
git clone https://github.com/905timur/RedditCommentCleaner.git
  1. In Windows terminal, navigate to wherever you saved the commentCleaner.py by using the "cd" command, for example:
cd C:\commentCleaner
  1. Once in the same directory as commentCleaner.py, run the following command:
python commentCleaner.py
  1. Fill out all the prompts.
Do you want to run the script? (yes/no): 
Credentials
- client_id
- client_secret
- username
- password
Run options
1. Remove all comments older than x days
2. Remove comments with negative karma
3. Remove comments with 1 karma and no replies
4. Quit
  1. Once you have filled out all the prompts, the script will run and delete all comments in the selected category. It will return a txt file with all the comments that were deleted.

For further suggestions or questions, please contact me or open an issue on this repository.

About

This script will automatically delete your Reddit comments that are older than x days.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages