Coder Social home page Coder Social logo

markditsworth / tweetanalyzer Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 1.92 MB

An environment for analyzing Twitter

License: MIT License

Shell 34.29% Python 65.71%
twitter elasticsearch logstash kibana kafka docker python nlp-machine-learning data-engineering-pipeline

tweetanalyzer's Introduction

TweetAnalyzer

Arch TweetAnalyzer uses a containerized ELK stack, plus Kafka to serve as an intermediate buffer for holding raw and processed tweet data.

Stream and Store Tweets in Real Time

Stream tweets based on keywords used, or the user accounts they are from. The tweets and their relevant information end up searchable in Kibana! Kibana example

Use Dashboards in Kibana to Support Visualization

Dashboard example

Instructions for Use

  • Create a developer account with Twitter here.
  • in the python/ directory create a file called secret.py, and in it place
api_key = "<YOUR API KEY>"
api_secret_key = "<YOUR API SECRET KEY>"
access_token = "<YOUR ACCESS TOKEN>"
access_token_secret = "YOU ACCESS TOKEN SECRET>"
  • Make appropriate changes to the python streaming/nlp scripts, virtualenvs, and topic name in logstash/pipeline.conf.

Notes

Running this stack led my machine to use about 6GB of memory. The offset retention seetting in kakfa is 1 minute, which helps keep memory consumption down, but the main culprit here is Elasticsearch. Be sure you have enough memory to spare before running.

Dependencies

  • Linux Host Machine
  • Docker
  • Python3
  • Twitter (free) developer account

tweetanalyzer's People

Contributors

dependabot[bot] avatar markditsworth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  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.