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>
<html>
<head><meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MSDS460_Group2_Final</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
@yogeshpv
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")
query.setCount(100)
query.setSince("2016-01-13")
@yogeshpv
yogeshpv / twitter_scraping.py
Last active June 15, 2016 17:44
Scrape twitter for tweets in Bay area, New York, LA and Chicago
View twitter_scraping.py
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 = ''