Skip to content

Instantly share code, notes, and snippets.

@yogeshpv
yogeshpv / spark-mllib-twitter.scala
Created June 30, 2016 22:58 — forked from asimjalis/spark-mllib-twitter.scala
Spark MLlib Twitter Quickstart
// Load tweets.
import scala.util.control.Breaks._
import scala.collection.JavaConversions._
import twitter4j.{Twitter,Query,TwitterFactory}
val twitter = TwitterFactory.getSingleton
val query = new twitter4j.Query("lang:en")
query.setCount(100)
query.setSince("2016-01-13")