GithubHelp home page GithubHelp logo

twitch-reddit-analytics's Introduction

Reddit Analytics Project

The reddit-analytics script is an example of a tool that crawls the reddit.com/r/twitch subreddit, looks for keywords (Such as load, buffer, lag, offline, and freezing) counts the number of votes and comments, and if they exceed a certain threshold (more than 5 upvotes alone, or a combination of more than 10 upvotes & comments) groups them into a list which could be used to trigger an alert, or potentially send a slack notification.

Example Usage:

[echaveza@8c8590c9f441 ~]$ python reddit.py
[512][124] - Currently seeing No Live Channels, Dashboard not working and many other anomalies.
[165][30] - Twitch chat isn't loading, cleared cache + cookies + browser data. Need help
[133][58] - Twitch chat down?
[102][66] - Twitch is still unwatchable in Australia, and it's impossible to get in proper contact with twitch support.
[101][16] - ""We are looking into issues causing video loading failures across the site." -Twitch Support
[84][55] - Streams without quality options buffering like mad
[44][55] - Twitch to Chromecast - Is this ever going to work again?
[38][9] - Unable to retrieve their stream key and go live.
[33][19] - Twitch will not let me log in, can't reset the password. I am still getting billed for my subscription
[27][8] - "We couldn't load this ad for you"
[26][19] - Sudden unbearable lag
[25][22] - "You have been blocked from accessing Twitch" - Haven't been able to watch streams since sunday
[24][7] - Twitch streams showing offline again in html5 player.

Some potential ideas for a related project:

  • Do more than parse a list of words - sentiment analysis?
  • Come up with a better scoring mechanism than the one above
  • Find a way to track or graph changes in sentiment, votes, or comments, and where they are trending
  • Deploy the script to an AWS environment, using Terraform and Lambda, or ECS, and have it run at certain intervals (e.g. https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html)

Installation

reddit-analytics has been tested with Python 2.7. This will work with the system python installed on Mac OS X, but it's usually better to install Python with Homebrew https://docs.brew.sh/Homebrew-and-Python, if you're using a Mac. You will also need to install the Praw library to talk to Reddit, e.g. pip install praw

Development

twitch-reddit-analytics's People

Watchers

 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.