Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
__pycache__
.gitignore
README.md
Reddit_Bot_Classifier.pdf
bot_accounts.txt
classifier.py
deleted.txt
items.py
reddit_bot_classifier_code.zip
tests.py
user_scraper.py

README.md

Reddit-Bot-Classifier

This project classifies accounts on Reddit as bots or regular users.

I originally created this project for an independent study project during my last semester of University but since then have adapted it to be used by others.

There are two main files used in this project:

user_scraper.py

This file is used to scrape user data from reddit and insert it into mongo db.

classifier.py

This file performs all of the classification algorithms and creates all of the visualizations for the data.

How to use this code

1. Clone this repository

2. Download mongodb

3. Create Reddit account and then create a developer application

Step by step guide here

4. Create a praw.ini file with your reddit account credentials

Put the praw.ini file in your main directory. It should look something like this:

[bot1]

client_id=XXXXXXXXXXXXXX

client_secret=XXXXXXXXXXXXXXXXXXXXXXXXXXX

password=XXXXXXXXXX

username=XXXXXXXXXX

5. Run the user_scraper.py

6. Run the classifier_all() function in classifier.py

You can’t perform that action at this time.