A simple script to assist leaving reddit whilst making some noise.
Error handling. Raises 500 when you try to mass delete posts.
- Install
praw
andpython-dotenv
(it's in requirements.txt). - Copy
.env.example
to.env
and edit it as instructed. - Run
python comments.py
to edit your comments - Run
python textposts.py
to edit your text posts and delete the rest. - Wait. It generally takes a few seconds per each comment.
Reddit is undergoing changes to their API. Specifically, they are going to charge $0.24 per 1000 API requests. A paid API isn't too big of a deal, but the figure per 1000 requests is so absolutely ridiculous, it completely kills any third-party Reddit client or bot. (One popular third-party client, Apollo, was quoted $20 million dollars to run for a year.)
After considerable backlash from the entire community of reddit, the admins have doubled down and even (clearly falsely) alleged blackmail from the developer of Apollo.
Because of this, Reddit is currently undergoing a mass exodus of its users, who are moving to alternatives - mostly, to the fediverse (or "Threadiverse"), via services like Kbin and Lemmy.
But why edit comments? Reddit's largest selling point is not within new posts; rather, it is in the aggregate of lots of old threads with useful information. Think: when was the last time you Googled something and found the answer in a Reddit thread? Probably not very long ago at all. Additionally, anecdotally, it appears Reddit doesn't store edit history at all, but they do store deleted history.
Contributions are welcome. Don't introduce any more packages.