Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

  1. Run the user_scraper.py

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

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Languages