Reddit-Recon mines Reddit data by subreddit name, keyword, and/or username, and analyzes the contents.
Use Reddit-Recon to isolate important and emerging topics, trends, and keywords, monitor user sentiment, and track user activity within and across subreddits.
Reddit-Recon supports low-cost, on-demand and automated workflows at relatively low latency (24hr SLA), with data written and stored locally (see data_pipeline).
- Clone or download .zip of
reddit-reconGithub repository.
git clone https://github.com/kariemoorman/reddit-recon.git
- Create a virtual environment inside the
reddit-recondirectory.
cd reddit-recon && python -m venv .venv
- Activate virtual environment.
source .venv/bin/activate
- Install package dependencies.
pip install -r requirements.txt
-
Create
credentials.pyfile.- Register for Reddit Developer account.
- Receive an Access Token.
- Add credentials to
credentials.pyfile.
touch src/scrapers/credentials.py
nano src/scrapers/credentials.py
## Credentials ##
my_client_id = 'CLIENT_ID'
my_client_secret = 'CLIENT_SECRET'
my_user_agent = 'USER_AGENT'
my_password = "REDDIT_ACCOUNT_PASSWORD"
my_username = "REDDIT_ACCOUNT_USERNAME"
- Execute
reddit-reconprogram.
python reddit-recon.py

