RedditVoteBot is a Python script that can be used to automatically upvote or downvote all comments made by a specific Reddit user.
- Python 3.x
- PRAW (Python Reddit API Wrapper)
- Reddit account with a registered application and OAuth2 credentials
- Clone this repository or download the script
RedditVoteBot.py
. - Install requirements:
pip install -r requirements.txt
. - Register a Reddit application and obtain OAuth2 credentials by following the instructions here.
- Set the following environment variables in
.env
with your Reddit OAuth2 credentials:PRAW_CLIENT_ID
: your client IDPRAW_CLIENT_SECRET
: your client secretPRAW_USER_AGENT
: a descriptive user agent stringPRAW_USERNAME
: your Reddit usernamePRAW_PASSWORD
: your Reddit password
- Run the script from the command line:
python3 RedditVoteBot.py
.
When you run the script, you will be prompted to enter the username of the target Reddit user, whether you want to upvote or downvote their comments, and whether you want the bot to run continuously. The script will then automatically upvote or downvote all comments made by the target user. The script will print the permalink of each comment that is voted on.
Would you like to (U)pvote or (D)ownvote the target? (U|D). D
Would you like the bot to run continuously? (Y|N) Y
Beginning to downvote. The permalink to the comment will be printed when a comment is downvoted.
https://www.reddit.com/r/some_subreddit/comments/some_post/some_comment
https://www.reddit.com/r/some_subreddit/comments/some_post/another_comment
Feel free to contribute to this project by submitting a pull request. If you find any bugs or have any feature requests, please open an issue.
This project is licensed under the MIT License - see the LICENSE file for details.