Git Product home page Git Product logo

scala_twitter_filter's Introduction

Scala_Twitter_Filter

The repository contains code for Stream Programming course project regarding streaming twitter data using Apache Spark. The project requires access to your twitter app, to get the following Key and Access Tokens:

  • Consumer Key (API Key)
  • Consumer Secret (API Secret)
  • Access Token
  • Access Token Secret

Apart from that, we need to add twitter4j library dependency to build.sbt file.

In a resources dir you can find twitter.txt file where you can pass your twitter credentials in the following format: (this is only example, you'll need to generate your own keys)

consumerKey tKegc4WNI6irDz9T265sSroBk
consumerSecret qe5uM1G1vjNCn9hRWdbFGqkcqHE5f3P7wTX2s9jw2NTG5NFOw9
accessToken 1267884169486614531-N41QiEQj7dIfhlcdJybk9Coe3qpI5u
accessTokenSecret gkQa5Wcvpzz0RVMz3jtIsY9polDYXyj20JoCykZeUU66f

For now, in the project there is one scala class -- KafkaDataCollector where you can find defined Kafka properties and access/set them by get/set methods. This class generates KafkaProducer to collect tweets from stream in real time.

The Object KafkaStreaming is the place where KafkaDataCollector is instantiated and ran.

In a SparkKafkaLoader Spark and Kafka are integrated and using Spark we can read stream data into DataFrame.

The code regarding twitter data sentiment / nlp analysis is a work in progress :)

scala_twitter_filter's People

Contributors

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