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.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
The scripts require python 3, and the following third party libraries:
- Praw
- Tendo
- Fire
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
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
- 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
- Charalampos Gkikas - Initial work - hargikas
This project is licensed under the GPL-3.0 License - see the LICENSE file for details
- Hat tip to anyone who's code was used
- The meteo.gr free use of web-cameras, and anyone who publices their meteo footage.