Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ralyodio/reddit-eraser
Erase your reddit comment history (then delete them).
https://github.com/ralyodio/reddit-eraser
Last synced: 2 months ago
JSON representation
Erase your reddit comment history (then delete them).
- Host: GitHub
- URL: https://github.com/ralyodio/reddit-eraser
- Owner: ralyodio
- License: mit
- Created: 2014-12-09T10:26:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-20T00:34:40.000Z (over 6 years ago)
- Last Synced: 2024-10-03T18:46:09.432Z (3 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
reddit-eraser
=============reddit-eraser is a node.js script that will get the last 100 comments, and replace them with chuck norris quotes...then delete the comment.
## node.js (required)
#mac
brew install nodeOther OS (windows, linux) should install from source found at http://nodejs.org
## authorize access
navigate to reddit.com/prefs/apps/
create a new app and use http://localhost for the redirect uri## install
git clone [email protected]:chovy/reddit-eraser.git
cd reddit-eraser
npm install
# copy config
cp config.sample.json config.json
# run from command line
./index.js -u username -p password -k oauthkey -s oauthsecret# add a cronjob to periodically check
crontab -e# add this line (runs every hour on hh:05)
5 * * * * /usr/local/bin/node ~/path/to/reddit-eraser/index.js -u user -p pass
# use flock to skip runs where script is already running (recommended - allows to run every hour)
5 * * * * flock -n /tmp/reddit-eraser.lock -c "/usr/local/bin/node /path/to/reddit-eraser/index.js -u user -p pass"## configure
concurrency is the number of simultaneous api requests sent to reddit.
## options
- user: reddit uername
- pass: reddit password
- v: verbosity (`-vvv` to increase)
- c: concurrent requestsLICENSE: MIT