Code Monkey home page Code Monkey logo

reddit_bot's Introduction

REDDIT BOT

A Bot that performs Sentiment Analysis on posts from r/depression subreddit

Visit [Slide show](http://lwgray.github.io) for results of analysis. Click on sad face in the portfolio. Download the slideshow for high resolution slides

img/sad3.png

Goals of project:

  1. Reddit bot which reads new posts in depression subreddit
  2. Analyze sentiment of posts
  3. Score the likelyhood of suicide
  4. Respond with appropriate suicide hotline information
  5. Use Flask to provide admin interface to log sentiment scores

Quick Start:

::
$ python app.py

Sentiment scores for reddit post are located in /main/data.csv

File info:

  1. All files are located in main folder
  2. All files must be run from "main" folder in order to work
  3. general_sentiment.py runs analysis on suicide notes
  4. suicide notes are located within suicide_notes subfolder in the main folder
  5. reddit_sentiment_scoring.py calculates /r/depression scores
  6. app.py collects testing text scoring of /r/depression into data.csv
  7. data.csv file is created with app.py... it contains title, upvotes, sentiment, and score of each /r/depression posts
  8. api_key.txt - Generated by alchemyapi.py. It contains api key It is created by visit alchemyapi website if you would like to request your own free api key. The free key only allows 1000 requests per day.

Add Later:

  • Provide community psychiatrist/psychologist resources based on poster's location

reddit_bot's People

Contributors

lwgray avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.