Coder Social home page Coder Social logo

hailey0huong / streaming_twitter_news Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.15 MB

Apply big data technologies to build a data pipeline for twitter streaming data and merge with News data for analysis

Python 14.18% Jupyter Notebook 85.82%

streaming_twitter_news's Introduction

Recent Trends in ML, AI, and Bigdata news

Goal: tracking trending topics in big data, machine learning, and AI.

There are 2 sources of news to analyze: news sharing through tweets and news from traditional news media.

Twitter Streaming

There are 2 experiments conducted with Twitter Streaming data. The high-level workflows are illustrated below.

For both experiments, streaming tweets are listened by Kafka. Code to connect Twitter API and Kafka can be found at twitter_to_kafka.py. To run the code in your terminal window, type python2.7 twitter_to_kafka.py

In the first experiment, data is collected from Kafka streams, cleaned in real-time, and sent to Cosmos DB for storage using Spark Streaming framework and Python. Code for this process can be found at tweetcollect_kafka.py. To run the whole process, type spark-submit --packages org.apache.spark:spark-streaming-kafka-0-8_2.11:2.0.2 tweetcollect_kafka.py

In the second experiment, data is cleaned and analyzed in real-time using Spark Streaming framework and Python. The results are updated in seconds in a Plotly Dashboard as below. Code for this part is at StreamSensing_wVizz.py. To run the whole process, type spark-submit --packages org.apache.spark:spark-streaming-kafka-0-8_2.11:2.0.2 StreamSensing_wVizz.py

Articles Collecting

The workflow for collecting and analyzing articles from traditional news media is below.

News Analytics

Codes to query data from Cosmos DB and prepare dataframes for analysis in Spark can be found at connect_cosmos_spark.py

Data retrieved from Cosmos DB are cleaned up further on Spark for the purpose of analysis. Codes can be found at clean_data_on_spark.py

LDA analysis was conducted on News corpus at LDA_news.py

Full analysis and visualization on Twitter and News data can be found at twitter_news_analytics.py

streaming_twitter_news's People

Contributors

hailey0huong avatar

Watchers

James Cloos 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.