Skip to content

My personal reddit comment remover based on the Shreddit built in Rust.

Notifications You must be signed in to change notification settings

MarkDPierce/shreddit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

I'm a user that tends to delete my comments after a couple of days. When the initial engagement of a post dies down. I hopped between two accounts one day and when I logged back into my main I noticed comments from 10 years ago showing that never showed before.

Having looked around for something that was already built that could help me out. Found a lot of javascript and python repos but they were all just meh to me.

Eventually I found Shreddit and I couldn't make it work after 5 minutes. Took the functionality I wanted from shreddit and converted it to Go.

This is not a feature rich or feature complete tool. You can honestly think of it as a simple script to delete all your reddit posts. Putting it out there for those that might want to use.

Setup

You need to create an Oauth application for authentication.

A new page should load with the the secret and when you are looking at the application, just below the app name and 'personal use script' will be the client id

Config

I got super lazy I know. I could have used a yaml or json config file, but environment variables are fine enough.

The REDDIT_USER_AGENT is required by reddit.

export REDDIT_USERNAME='USER_NAME'
export REDDIT_PASSWORD='USER_PASSWORD'
export REDDIT_CLIENT_ID='APP_CLIENT_ID'
export REDDIT_CLIENT_SECRET='APP_SECRET'
export REDDIT_USER_AGENT='ShredditGoClient'
export REDDIT_YEARS_BACK='11'
export REDDIT_DRY_RUN="true"  # Set to "false" for actual execution

About

My personal reddit comment remover based on the Shreddit built in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages