Coder Social home page Coder Social logo

politeiamancer's Introduction

politeiamancer

politeiamancer performs sentiment analysis on live streaming comment data from the /r/politics subreddit. It tracks overall sentiment, as well as sentiment for comments mentioning the 2024 Presidential candidates specifically.

Why would I want this?

You too can eat straight from the trash can of ideology, now in realtime! Fun!!

Why the silly name?

  • πολιτεία (Gr.): citizenship, the community of citizens, a polity
  • μᾰντείᾱ (Gr.): prophecy, divination, oracle
  • anything is a perfectly cromulent prefix if you believe hard enough

Data Protection & Compliance

politeiamancer complies with Reddit's Developer Data Protection Addendum by simply not storing any Reddit data. The comments are ingested into Kafka, streamed into Spark for analysis, and then dropped. All that is retained are the analytics results.

Development

building the docker images

cd ingest
❯ docker build -t vivshaw/politeiamancer-analyze:{INSERT VERSION HERE} ./analyze
❯ docker build -t vivshaw/politeiamancer-ingest:{INSERT VERSION HERE} ./ingest
❯ docker build -t vivshaw/politeiamancer-viz:{INSERT VERSION HERE} ./viz
❯ docker push vivshaw/politeiamancer-analyze:{INSERT VERSION HERE}
❯ docker push vivshaw/politeiamancer-ingest:{INSERT VERSION HERE}
❯ docker push vivshaw/politeiamancer-viz:{INSERT VERSION HERE}

on docker-compose

❯ docker-compose up

on kubernetes

don't use these instructions, they're 100% busted

minikube up n' running

❯ minikube start
❯ eval $(minikube -p minikube docker-env)

Working with the helm chart

❯ helm dependency update ./helm
❯ helm install politeiamancer --namespace politeiamancer --create-namespace ./helm
❯ helm uninstall politeiamancer --namespace politeiamancer

TODO

  • Figure out what to do about ready/liveness probes- currently disabled

politeiamancer's People

Contributors

vivshaw avatar

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.