Skip to content

Instantly share code, notes, and snippets.

View MSDS460_Group2_Final.html
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<head><meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MSDS460_Group2_Final</title><script src=""></script>
yogeshpv / spark-mllib-twitter.scala
Created June 30, 2016 22:58 — forked from asimjalis/spark-mllib-twitter.scala
Spark MLlib Twitter Quickstart
View spark-mllib-twitter.scala
// 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")
yogeshpv /
Last active June 15, 2016 17:44
Scrape twitter for tweets in Bay area, New York, LA and Chicago
import tweepy
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import json
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''