Skip to content

A bot that scans your content in a specific subreddit and deletes old posts

License

Notifications You must be signed in to change notification settings

hargikas/reddit-delete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Delete

Reddit-Delete is a python script to delete old reddit post and comments, but you still want to keep your account. It scans your content in specific subreddits.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

The scripts require python 3, and the following third party libraries:

  • Praw
  • Tendo
  • Fire

Installing

You can automatically install all the required package by using pipenv:

pipenv install --skip-lock

Or you can install manually the required libraries:

pip3 install praw
pip3 install fire
pip3 install tendo

Executing

The main script is delete_content.py and you can easily execute either with pipenv or just with python.

The main usage is:

delete_content.py --days-old DAYS_OLD [--subreddits SUBREDDITS] [--all-subreddits]

Parameters:

  • days_old: This parameter is how old should the content be in order to be deleted.
  • subrreddits: In which subrredits is the script allowed to delete.
  • all_subreddits: If this parameter is present, then the script will delete content in all possible subreddits.

Here there is an example.

Pipenv:

pipenv run python delete_content.py --subreddits [aww,hardcoreaww] --days-old 400

Just Python:

python delete_content.py --subreddits [aww,hardcoreaww] --days-old 400

Built With

  • Praw - For simple access to Reddit's API.
  • Tendo - Single Instance to prevent your script from running in parallel.
  • Fire - For command line argument parsing

Authors

  • Charalampos Gkikas - Initial work - hargikas

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details

Acknowledgments

  • Hat tip to anyone who's code was used
  • The meteo.gr free use of web-cameras, and anyone who publices their meteo footage.

About

A bot that scans your content in a specific subreddit and deletes old posts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages