greentext bot
this is a simple reddit bot which downloads "hot" posts of the given subreddits.
Dependencies
In order to use this bot you need to install the dependencies
pip install -r requirements.txt
Installation
To make this bot work, you need to have a reddit account.
- Sign in with your reddit account
- Go here and create an app
- Generate a new OAuth token and add the tokens in the .env file
Create a .env file
client_id="your_client_id"
client_secret="your_client_secret"
password="your_password"
user_agent="your_user_agent"
username="your_username"
In between those quotes, you have to add your tokens which you generated previously.
Usage
Once you are done with adding the creds, you can execute the bot
python main.py
Hopefully at this point, you might see "logged into reddit successfully" message being displayed. The images will be downloaded in the img folder.
Additionals
- You can add your favourite subreddits in the subreddits.txt.
- You can alter the limit size for the posts
Have doubts?
google them