50

HackMIT Presentation

Embed Size (px)

DESCRIPTION

on wednesday 2nd october i presented to a group of students at MIT on Twitter API Data. this is the presentation i gave them.

Citation preview

Page 1: HackMIT Presentation
Page 2: HackMIT Presentation

Visualizing the real-time information network

Page 3: HackMIT Presentation

Visualizing the real-time information network

@themattharris@kmonkeyjam

Page 4: HackMIT Presentation

Global Conversation

http://www.flickr.com/photos/twitteroffice/7420677428/

Page 5: HackMIT Presentation

Geographical

http://www.flickr.com/photos/twitteroffice/8798022019/

Page 6: HackMIT Presentation

Getting Started

http://www.flickr.com/photos/chberge/3770601501/

Page 7: HackMIT Presentation

@TwitterEng | HackMIT

URL: https://dev.twitter.com

Creating an App

7

Page 8: HackMIT Presentation

@TwitterEng | HackMIT

URL: https://dev.twitter.com/apps

Creating an App

8

Page 9: HackMIT Presentation

@TwitterEng | HackMIT

URL: https://dev.twitter.com/apps/new

Creating an App

9

Page 10: HackMIT Presentation

@TwitterEng | HackMIT

URL: https://dev.twitter.com/apps/12345/show

OAuth Tokens

10

Page 11: HackMIT Presentation

@TwitterEng | HackMIT

Core Objects

11

User

Timeline Social Graph

Tweet

Page 12: HackMIT Presentation

@TwitterEng | HackMIT

User

12

User

Timeline Social Graph

Tweet

Page 13: HackMIT Presentation

@TwitterEng | HackMIT

User

13

Page 14: HackMIT Presentation

@TwitterEng | HackMIT

User

14

{ "id": 777925, "id_str": "777925", "name": "Matt Harris", "screen_name": "themattharris", "location": "SFO\/LHR\/YVR\/JAX\/IAD", "description": "PECoS @twitter. Married to @cindyli. Kryptonite hurts me.", "url": "http:\/\/t.co\/ZDjyFfevMF", "entities": { "url": { "urls": [ { "url": "http:\/\/t.co\/ZDjyFfevMF", "expanded_url": "http:\/\/about.me\/themattharris", "display_url": "about.me\/themattharris", "indices": [ 0, 22 ] } ] }, "description": { "urls": [

] } }, "protected": false, "followers_count": 8586, "friends_count": 486, "listed_count": 314, "created_at": "Sat Feb 17 20:49:54 +0000 2007", "favourites_count": 338, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": false, "statuses_count": 4874, "lang": "en", "status": { "created_at": "Mon Sep 30 22:46:44 +0000 2013", "id": 384811580208082944, "id_str": "384811580208082944", "text": "the professor and i are deriving ... \/cc @jmhodges", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "geo": null, "coordinates": null, "place": null, "contributors": null, "retweet_count": 0, "favorite_count": 1, "entities": { "hashtags": [

], "symbols": [

], "urls": [

], "user_mentions": [ { "screen_name": "jmhodges", "name": "Jeff Hodges", "id": 9267272, "id_str": "9267272", "indices": [ 41, 50 ] } ] }, "favorited": false, "retweeted": false, "lang": "en" }, "contributors_enabled": false, "is_translator": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_image_url_https": "https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_tile": false, "profile_image_url": "http:\/\/a0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_image_url_https": "https:\/\/si0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/777925\/1351367661", "profile_link_color": "0084B4", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "default_profile": true, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": false}

Page 15: HackMIT Presentation

@TwitterEng | HackMIT

User

15

{ "id": 777925, "id_str": "777925", "name": "Matt Harris", "screen_name": "themattharris", "location": "SFO\/LHR\/YVR\/JAX\/IAD", "description": "PECoS @twitter. Married to @cindyli. Kryptonite hurts me.", "url": "http:\/\/t.co\/ZDjyFfevMF", "entities": { "url": { "urls": [ { "url": "http:\/\/t.co\/ZDjyFfevMF", "expanded_url": "http:\/\/about.me\/themattharris", "display_url": "about.me\/themattharris", "indices": [ 0, 22 ] } ] }, "description": { "urls": [

] } }, "protected": false, "followers_count": 8586, "friends_count": 486, "listed_count": 314, "created_at": "Sat Feb 17 20:49:54 +0000 2007", "favourites_count": 338, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": false, "statuses_count": 4874, "lang": "en", "status": { "created_at": "Mon Sep 30 22:46:44 +0000 2013", "id": 384811580208082944, "id_str": "384811580208082944", "text": "the professor and i are deriving ... \/cc @jmhodges", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "geo": null, "coordinates": null, "place": null, "contributors": null, "retweet_count": 0, "favorite_count": 1, "entities": { "hashtags": [

], "symbols": [

], "urls": [

], "user_mentions": [ { "screen_name": "jmhodges", "name": "Jeff Hodges", "id": 9267272, "id_str": "9267272", "indices": [ 41, 50 ] } ] }, "favorited": false, "retweeted": false, "lang": "en" }, "contributors_enabled": false, "is_translator": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_image_url_https": "https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_tile": false, "profile_image_url": "http:\/\/a0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_image_url_https": "https:\/\/si0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/777925\/1351367661", "profile_link_color": "0084B4", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "default_profile": true, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": false}

{ "id": 777925, "id_str": "777925", "name": "Matt Harris", "screen_name": "themattharris", "location": "SFO\/LHR\/YVR\/JAX\/IAD", "description": "PECoS @twitter. Married to @cindyli. Kryptonite hurts me.", "protected": false, "created_at": "Sat Feb 17 20:49:54 +0000 2007", "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": false, "lang": "en",

Page 16: HackMIT Presentation

@TwitterEng | HackMIT

User

16

{ "id": 777925, "id_str": "777925", "name": "Matt Harris", "screen_name": "themattharris", "location": "SFO\/LHR\/YVR\/JAX\/IAD", "description": "PECoS @twitter. Married to @cindyli. Kryptonite hurts me.", "url": "http:\/\/t.co\/ZDjyFfevMF", "entities": { "url": { "urls": [ { "url": "http:\/\/t.co\/ZDjyFfevMF", "expanded_url": "http:\/\/about.me\/themattharris", "display_url": "about.me\/themattharris", "indices": [ 0, 22 ] } ] }, "description": { "urls": [

] } }, "protected": false, "followers_count": 8586, "friends_count": 486, "listed_count": 314, "created_at": "Sat Feb 17 20:49:54 +0000 2007", "favourites_count": 338, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": false, "statuses_count": 4874, "lang": "en", "status": { "created_at": "Mon Sep 30 22:46:44 +0000 2013", "id": 384811580208082944, "id_str": "384811580208082944", "text": "the professor and i are deriving ... \/cc @jmhodges", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "geo": null, "coordinates": null, "place": null, "contributors": null, "retweet_count": 0, "favorite_count": 1, "entities": { "hashtags": [

], "symbols": [

], "urls": [

], "user_mentions": [ { "screen_name": "jmhodges", "name": "Jeff Hodges", "id": 9267272, "id_str": "9267272", "indices": [ 41, 50 ] } ] }, "favorited": false, "retweeted": false, "lang": "en" }, "contributors_enabled": false, "is_translator": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_image_url_https": "https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_tile": false, "profile_image_url": "http:\/\/a0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_image_url_https": "https:\/\/si0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/777925\/1351367661", "profile_link_color": "0084B4", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "default_profile": true, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": false}

"followers_count": 8586, "friends_count": 486, "listed_count": 314, "favourites_count": 338, "statuses_count": 4874,

Page 17: HackMIT Presentation

@TwitterEng | HackMIT

Tweet

17

User

Timeline Social Graph

Tweet

Page 18: HackMIT Presentation

@TwitterEng | HackMIT

Tweet

18

Page 19: HackMIT Presentation

@TwitterEng | HackMIT

Tweet

19

140 Characters

Page 20: HackMIT Presentation

@TwitterEng | HackMIT

Tweet

20

~200 bytes

Page 21: HackMIT Presentation

@TwitterEng | HackMIT

Tweet

21

{ "created_at": "Thu Sep 19 17:43:52 +0000 2013", "id": 380749093766561793, "id_str": "380749093766561793", "text": "iOS7: battery life not included", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 777925, "id_str": "777925", "name": "Matt Harris", "screen_name": "themattharris", "location": "SFO\/LHR\/YVR\/JAX\/IAD", "description": "PECoS @twitter. Married to @cindyli. Kryptonite hurts me.", "url": "http:\/\/t.co\/ZDjyFfevMF", "entities": { "url": { "urls": [ { "url": "http:\/\/t.co\/ZDjyFfevMF", "expanded_url": "http:\/\/about.me\/themattharris", "display_url": "about.me\/themattharris", "indices": [0, 22] } ] }, "description": { "urls": [ ] } }, "protected": false, "followers_count": 8586, "friends_count": 486, "listed_count": 314, "created_at": "Sat Feb 17 20:49:54 +0000 2007", "favourites_count": 338, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": false, "statuses_count": 4874, "lang": "en", "contributors_enabled": false, "is_translator": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_image_url_https": "https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_tile": false, "profile_image_url": "http:\/\/a0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_image_url_https": "https:\/\/si0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/777925\/1351367661", "profile_link_color": "0084B4", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "default_profile": true, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": null }, "geo": null, "coordinates": null, "place": { "id": "5a110d312052166f", "url": "https:\/\/api.twitter.com\/1.1\/geo\/id\/5a110d312052166f.json", "place_type": "city", "name": "San Francisco", "full_name": "San Francisco, CA", "country_code": "US", "country": "United States", "bounding_box": { "type": "Polygon", "coordinates": [ [ [-122.51368188, 37.70813196], [-122.35845384, 37.70813196], [-122.35845384, 37.83245301], [-122.51368188, 37.83245301] ] ] }, "attributes": { } }, "contributors": null, "retweet_count": 1, "favorite_count": 4, "entities": { "hashtags": [ ], "symbols": [ ], "urls": [ ], "user_mentions": [ ] }, "favorited": false, "retweeted": false, "lang": "en"}

Page 22: HackMIT Presentation

@TwitterEng | HackMIT

Tweet

22

{ "created_at": "Thu Sep 19 17:43:52 +0000 2013", "id": 380749093766561793, "id_str": "380749093766561793", "text": "iOS7: battery life not included", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 777925, "id_str": "777925", "name": "Matt Harris", "screen_name": "themattharris", "location": "SFO\/LHR\/YVR\/JAX\/IAD", "description": "PECoS @twitter. Married to @cindyli. Kryptonite hurts me.", "url": "http:\/\/t.co\/ZDjyFfevMF", "entities": { "url": { "urls": [ { "url": "http:\/\/t.co\/ZDjyFfevMF", "expanded_url": "http:\/\/about.me\/themattharris", "display_url": "about.me\/themattharris", "indices": [0, 22] } ] }, "description": { "urls": [ ] } }, "protected": false, "followers_count": 8586, "friends_count": 486, "listed_count": 314, "created_at": "Sat Feb 17 20:49:54 +0000 2007", "favourites_count": 338, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": false, "statuses_count": 4874, "lang": "en", "contributors_enabled": false, "is_translator": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_image_url_https": "https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_tile": false, "profile_image_url": "http:\/\/a0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_image_url_https": "https:\/\/si0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/777925\/1351367661", "profile_link_color": "0084B4", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "default_profile": true, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": null }, "geo": null, "coordinates": null, "place": { "id": "5a110d312052166f", "url": "https:\/\/api.twitter.com\/1.1\/geo\/id\/5a110d312052166f.json", "place_type": "city", "name": "San Francisco", "full_name": "San Francisco, CA", "country_code": "US", "country": "United States", "bounding_box": { "type": "Polygon", "coordinates": [ [ [-122.51368188, 37.70813196], [-122.35845384, 37.70813196], [-122.35845384, 37.83245301], [-122.51368188, 37.83245301] ] ] }, "attributes": { } }, "contributors": null, "retweet_count": 1, "favorite_count": 4, "entities": { "hashtags": [ ], "symbols": [ ], "urls": [ ], "user_mentions": [ ] }, "favorited": false, "retweeted": false, "lang": "en"}

{ "created_at": "Thu Sep 19 17:43:52 +0000 2013", "id": 380749093766561793, "id_str": "380749093766561793", "text": "iOS7: battery life not included", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null,

Page 23: HackMIT Presentation

@TwitterEng | HackMIT

Tweet

23

{ "created_at": "Thu Sep 19 17:43:52 +0000 2013", "id": 380749093766561793, "id_str": "380749093766561793", "text": "iOS7: battery life not included", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 777925, "id_str": "777925", "name": "Matt Harris", "screen_name": "themattharris", "location": "SFO\/LHR\/YVR\/JAX\/IAD", "description": "PECoS @twitter. Married to @cindyli. Kryptonite hurts me.", "url": "http:\/\/t.co\/ZDjyFfevMF", "entities": { "url": { "urls": [ { "url": "http:\/\/t.co\/ZDjyFfevMF", "expanded_url": "http:\/\/about.me\/themattharris", "display_url": "about.me\/themattharris", "indices": [0, 22] } ] }, "description": { "urls": [ ] } }, "protected": false, "followers_count": 8586, "friends_count": 486, "listed_count": 314, "created_at": "Sat Feb 17 20:49:54 +0000 2007", "favourites_count": 338, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": false, "statuses_count": 4874, "lang": "en", "contributors_enabled": false, "is_translator": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_image_url_https": "https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_tile": false, "profile_image_url": "http:\/\/a0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_image_url_https": "https:\/\/si0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/777925\/1351367661", "profile_link_color": "0084B4", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "default_profile": true, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": null }, "geo": null, "coordinates": null, "place": { "id": "5a110d312052166f", "url": "https:\/\/api.twitter.com\/1.1\/geo\/id\/5a110d312052166f.json", "place_type": "city", "name": "San Francisco", "full_name": "San Francisco, CA", "country_code": "US", "country": "United States", "bounding_box": { "type": "Polygon", "coordinates": [ [ [-122.51368188, 37.70813196], [-122.35845384, 37.70813196], [-122.35845384, 37.83245301], [-122.51368188, 37.83245301] ] ] }, "attributes": { } }, "contributors": null, "retweet_count": 1, "favorite_count": 4, "entities": { "hashtags": [ ], "symbols": [ ], "urls": [ ], "user_mentions": [ ] }, "favorited": false, "retweeted": false, "lang": "en"}

"user": { "id": 777925, "id_str": "777925", "name": "Matt Harris", "screen_name": "themattharris", "location": "SFO\/LHR\/YVR\/JAX\/IAD", "description": "PECoS @twitter. Married to @cindyli. Kryptonite hurts me.", "url": "http:\/\/t.co\/ZDjyFfevMF", "entities": { "url": { "urls": [ { "url": "http:\/\/t.co\/ZDjyFfevMF", "expanded_url": "http:\/\/about.me\/themattharris", "display_url": "about.me\/themattharris", "indices": [0, 22]

Page 24: HackMIT Presentation

@TwitterEng | HackMIT

Tweet

24

{ "created_at": "Thu Sep 19 17:43:52 +0000 2013", "id": 380749093766561793, "id_str": "380749093766561793", "text": "iOS7: battery life not included", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 777925, "id_str": "777925", "name": "Matt Harris", "screen_name": "themattharris", "location": "SFO\/LHR\/YVR\/JAX\/IAD", "description": "PECoS @twitter. Married to @cindyli. Kryptonite hurts me.", "url": "http:\/\/t.co\/ZDjyFfevMF", "entities": { "url": { "urls": [ { "url": "http:\/\/t.co\/ZDjyFfevMF", "expanded_url": "http:\/\/about.me\/themattharris", "display_url": "about.me\/themattharris", "indices": [0, 22] } ] }, "description": { "urls": [ ] } }, "protected": false, "followers_count": 8586, "friends_count": 486, "listed_count": 314, "created_at": "Sat Feb 17 20:49:54 +0000 2007", "favourites_count": 338, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": false, "statuses_count": 4874, "lang": "en", "contributors_enabled": false, "is_translator": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_image_url_https": "https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_tile": false, "profile_image_url": "http:\/\/a0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_image_url_https": "https:\/\/si0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/777925\/1351367661", "profile_link_color": "0084B4", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "default_profile": true, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": null }, "geo": null, "coordinates": null, "place": { "id": "5a110d312052166f", "url": "https:\/\/api.twitter.com\/1.1\/geo\/id\/5a110d312052166f.json", "place_type": "city", "name": "San Francisco", "full_name": "San Francisco, CA", "country_code": "US", "country": "United States", "bounding_box": { "type": "Polygon", "coordinates": [ [ [-122.51368188, 37.70813196], [-122.35845384, 37.70813196], [-122.35845384, 37.83245301], [-122.51368188, 37.83245301] ] ] }, "attributes": { } }, "contributors": null, "retweet_count": 1, "favorite_count": 4, "entities": { "hashtags": [ ], "symbols": [ ], "urls": [ ], "user_mentions": [ ] }, "favorited": false, "retweeted": false, "lang": "en"}

"place": { "id": "5a110d312052166f", "url": "https:\/\/api.twitter.com\/1.1\/geo\/id\/5a110d312052166f.json", "place_type": "city", "name": "San Francisco", "full_name": "San Francisco, CA", "country_code": "US", "country": "United States", "bounding_box": { "type": "Polygon", "coordinates": [ [ [-122.51368188, 37.70813196], [-122.35845384, 37.70813196], [-122.35845384, 37.83245301], [-122.51368188, 37.83245301] ] ] },

Page 25: HackMIT Presentation

@TwitterEng | HackMIT

Tweet

25

{ "created_at": "Thu Sep 19 17:43:52 +0000 2013", "id": 380749093766561793, "id_str": "380749093766561793", "text": "iOS7: battery life not included", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null, "user": { "id": 777925, "id_str": "777925", "name": "Matt Harris", "screen_name": "themattharris", "location": "SFO\/LHR\/YVR\/JAX\/IAD", "description": "PECoS @twitter. Married to @cindyli. Kryptonite hurts me.", "url": "http:\/\/t.co\/ZDjyFfevMF", "entities": { "url": { "urls": [ { "url": "http:\/\/t.co\/ZDjyFfevMF", "expanded_url": "http:\/\/about.me\/themattharris", "display_url": "about.me\/themattharris", "indices": [0, 22] } ] }, "description": { "urls": [ ] } }, "protected": false, "followers_count": 8586, "friends_count": 486, "listed_count": 314, "created_at": "Sat Feb 17 20:49:54 +0000 2007", "favourites_count": 338, "utc_offset": -25200, "time_zone": "Pacific Time (US & Canada)", "geo_enabled": true, "verified": false, "statuses_count": 4874, "lang": "en", "contributors_enabled": false, "is_translator": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_image_url_https": "https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png", "profile_background_tile": false, "profile_image_url": "http:\/\/a0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_image_url_https": "https:\/\/si0.twimg.com\/profile_images\/554181350\/matt_normal.jpg", "profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/777925\/1351367661", "profile_link_color": "0084B4", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "default_profile": true, "default_profile_image": false, "following": true, "follow_request_sent": false, "notifications": null }, "geo": null, "coordinates": null, "place": { "id": "5a110d312052166f", "url": "https:\/\/api.twitter.com\/1.1\/geo\/id\/5a110d312052166f.json", "place_type": "city", "name": "San Francisco", "full_name": "San Francisco, CA", "country_code": "US", "country": "United States", "bounding_box": { "type": "Polygon", "coordinates": [ [ [-122.51368188, 37.70813196], [-122.35845384, 37.70813196], [-122.35845384, 37.83245301], [-122.51368188, 37.83245301] ] ] }, "attributes": { } }, "contributors": null, "retweet_count": 1, "favorite_count": 4, "entities": { "hashtags": [ ], "symbols": [ ], "urls": [ ], "user_mentions": [ ] }, "favorited": false, "retweeted": false, "lang": "en"}

"contributors": null, "retweet_count": 1, "favorite_count": 4, "entities": { "hashtags": [ ], "symbols": [ ], "urls": [ ], "user_mentions": [ ] }, "favorited": false, "retweeted": false, "lang": "en"

Page 26: HackMIT Presentation

@TwitterEng | HackMIT

Timeline

26

User

Timeline Social Graph

Tweet

Page 27: HackMIT Presentation

@TwitterEng | HackMIT

Timeline (User)

27

Page 28: HackMIT Presentation

@TwitterEng | HackMIT

Timeline (Home)

28

Page 29: HackMIT Presentation

@TwitterEng | HackMIT

Timeline

29

User

Timeline Social Graph

Tweet

Page 30: HackMIT Presentation

@TwitterEng | HackMIT

Social Graph

30

Follows

Followed By

Page 31: HackMIT Presentation

@TwitterEng | HackMIT

Social Graph

31

Follows

Followed By

Page 32: HackMIT Presentation

@TwitterEng | HackMIT

Social Graph

32

Follows

Page 33: HackMIT Presentation

@TwitterEng | HackMIT

Social Graph

33

FollowsFollows

Follows

Followed By

Page 34: HackMIT Presentation

@TwitterEng | HackMIT

Social Graph

34

FollowsFollows

Followed By

Follows

Page 35: HackMIT Presentation

Got Data?Got Data?

http://www.flickr.com/photos/nickwheeleroz/2669814012/

Page 36: HackMIT Presentation

@TwitterEng | HackMIT

Sources

36

Search

Streaming Snapshot

Timelines

Page 37: HackMIT Presentation

@TwitterEng | HackMIT

Sources

37

Search

Streaming Snapshot

Timelines

On Demand

Relevance Based

Rate Limited

Historical

Page 38: HackMIT Presentation

@TwitterEng | HackMIT

Sources

38

Search

Streaming Snapshot

Timelines

On Demand

User Based

Rate Limited

Historical

Page 39: HackMIT Presentation

@TwitterEng | HackMIT

Sources

39

Search

Streaming Snapshot

TimelinesLong Poll

Targetted

Sampled

Real Time

Page 40: HackMIT Presentation

@TwitterEng | HackMIT

Sources

40

Search

Streaming Snapshot

Timelines

Event Focused

Sampled

Historical

Page 41: HackMIT Presentation

@TwitterEng | HackMIT

Snapshots

41

Breaking Bad Final Season

“Felina” 9/29

Boston Redsox Game7/29

#breakingbad, #felina#redsox, @redsox, @Raysbaseball

Breaking Bad Final Season

“Bloodmoney” 8/11

#breakingbad, #bloodmoney

Page 42: HackMIT Presentation

@TwitterEng | HackMIT

Things to know

42

use _str

{ "created_at": "Thu Sep 19 17:43:52 +0000 2013", "id": 380749093766561793, "id_str": "380749093766561793", "text": "iOS7: battery life not included", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null,

Page 43: HackMIT Presentation

@TwitterEng | HackMIT

Things to know

43

use _str

{ "created_at": "Thu Sep 19 17:43:52 +0000 2013", "id": 380749093766561793, "id_str": "380749093766561793", "text": "iOS7: battery life not included", "source": "web", "truncated": false, "in_reply_to_status_id": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id": null, "in_reply_to_user_id_str": null, "in_reply_to_screen_name": null,

Page 44: HackMIT Presentation

@TwitterEng | HackMIT

Things to know

44

use _str

(380749093766561793).toString()"380749093766561800"

Page 45: HackMIT Presentation

@TwitterEng | HackMIT

Things to know

45

use _str

(380749093766561793).toString()"380749093766561800"

Page 46: HackMIT Presentation

@TwitterEng | HackMIT

Things to know

46

use _str

console

rate limits

Page 47: HackMIT Presentation

@TwitterEng | HackMIT

Things to know

47

use _str

console support

rate limits

Page 49: HackMIT Presentation

@TwitterEng | HackMIT

Come and see us

49

Page 50: HackMIT Presentation

@TwitterEng | HackMIT

Demo

50