Skip to content

Instantly share code, notes, and snippets.

Yogesh yogeshpv

Block or report user

Report or block yogeshpv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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 Jun 15, 2016
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 = ''
You can’t perform that action at this time.