Place both the python script and the oauth.txt file in the same folder.
This uses praw-OAuth2Util version 0.2.2 ONLY. It will not work on a later version, though when my PC works with said later versions I will update the file and this readme.
- USERAGENT - Your useragent. A change to this is not recommended.
- SUBREDDIT - The subreddit for the script to work on.
- DBNAME - the name of the SQL database made.
- WEIRD_URL - the report made on a post that is a link that was not expected.
- BOTCOMMENT - the comment the bot makes. Every instance of
{<anychar>}
will be converted to the subreddit name. - MAX_AT_ONCE - the amount posts on the new queue to check at once. Can be 1-100. Change depending on the speed of your subreddit. Note: Making it None will make it get all new queue posts (max 1k by reddit API limitation), even if it's not intended. Don't do this unless you are on a recently created sub.
- WAIT - time to wait between cycles
Instructions:
- Go to http://reddit.com/prefs. Press apps. Press create/develop an app. Fill the info in as so
- Fill in the oauth.txt file with the info you get after you press create
Prerequisites:
- Python 3.4
- bs4. If you don't have it, run
pip3.4 install beautifulsoup4
as an administrator / sudo. - praw. If you don't have it, run
pip3.4 install praw
as an administrator / sudo. - OAuth2Util 0.2.2. If you don't have it, run
pip3.4 install praw-oauth2util==0.2.2
as an administrator / sudo. - All other prerequisites are installed alongside praw / are in Python 3.4 by default.