SlideShare a Scribd company logo
#TapIntoTwitter
Wi-Fi: Cuckoo
PW: redbirdpounceflag
TWITTER DATA & BOTS 101
UNDERSTANDING TWITTER DATA &
BUILDING A BOT USING THE TWITTER PUBLIC API
HARRISON NEFF
PARTNER ENGINEER - GNIP
@HARRIS_0N
REST API
What has happened
in the past
+
Publishing
content
Streaming API
What is happening
now in real-time
CURRENT PUBLIC APIS
REST APIS
Tweets GET statuses/show/:id
Timelines GET statuses/home_timeline
GET statuses/user_timeline
GET statuses/mentions_timeline
POST statuses/update
Search GET search/tweets
…
STREAMING APIS
Sample Stream POST statuses/sample
1% random sample
POST statuses/filter
Up to 1% filtered by @username, keyword, hashtag, etc
Filter Stream
PUBLIC API GNIP
UPGRADE PATH
ELEVATED
ACCESS
GNIP PRODUCTS
Real Time APIs
PowerTrack
Decahose
Data Collectors
Historical APIs
Historical PowerTrack
30-Day Search API
Full Archive Search API
Insights APIs
Audience API
Engagement API
{	
  
	
  	
  "id":	
  "tag:search.twitter.com,2005:403224522679009280",	
  
	
  	
  "objectType":	
  "activity",	
  
	
  	
  "actor":	
  {	
  
	
  	
  	
  	
  "objectType":	
  "person",	
  
	
  	
  	
  	
  "id":	
  "id:twitter.com:1855784545",	
  
	
  	
  	
  	
  "link":	
  "http://www.twitter.com/LandenEhlers",	
  
	
  	
  	
  	
  "displayName":	
  "Landen	
  Ehlers",	
  
	
  	
  	
  	
  "postedTime":	
  "2013-­‐09-­‐11T23:52:03.000Z",	
  
	
  	
  	
  	
  "image":	
  "https://pbs.twimg.com/profile_images/378800000646150423/83090ccb95a60def923c674e7bd002a0_normal.jpeg",	
  
	
  	
  	
  	
  "summary":	
  "Senior	
  Construction	
  Science	
  student	
  at	
  Texas	
  A&M	
  University.	
  Barefoot	
  Waterskiing	
  National	
  Champion.	
  Vice	
  Pres
	
  	
  	
  	
  "links":	
  [	
  
	
  	
  	
  	
  	
  	
  {	
  
	
  	
  	
  	
  	
  	
  	
  	
  "href":	
  null,	
  
	
  	
  	
  	
  	
  	
  	
  	
  "rel":	
  "me"	
  
	
  	
  	
  	
  	
  	
  }	
  
	
  	
  	
  	
  ],	
  
	
  	
  	
  	
  "friendsCount":	
  65,	
  
	
  	
  	
  	
  "followersCount":	
  15,	
  
	
  	
  	
  	
  "listedCount":	
  1,	
  
	
  	
  	
  	
  "statusesCount":	
  24,	
  
	
  	
  	
  	
  "twitterTimeZone":	
  null,	
  
	
  	
  	
  	
  "verified":	
  false,	
  
	
  	
  	
  	
  "utcOffset":	
  null,	
  
	
  	
  	
  	
  "preferredUsername":	
  "LandenEhlers",	
  
	
  	
  	
  	
  "languages":	
  [	
  
	
  	
  	
  	
  	
  	
  "en"	
  
A Tweet may only be 140 Characters, but…
it has over 65 data elements
 "generator":	
  {	
  
	
  	
  	
  	
  "displayName":	
  "Twitter	
  for	
  Android",	
  
	
  	
  	
  	
  "link":	
  "http://twitter.com/download/android"	
  
	
  	
  },	
  
	
  	
  "geo":	
  {	
  
	
  	
  	
  	
  "type":	
  "Point",	
  
	
  	
  	
  	
  "coordinates":	
  [	
  
	
  	
  	
  	
  	
  	
  30.622496,	
  
	
  	
  	
  	
  	
  	
  -­‐96.3283527	
  
	
  	
  	
  	
  ]
Application + Point Geo
USE CASES
SAVE LIVES
Mitigate the impact of
annual flooding
IDENTIFY
FOODBORNE
ILLNESS
Find signal by monitoring
conversations at scale
CUSTOMER
SERVICE
Discover the key source
of customer frustration
and market to at-risk
subscribers in real time
LIMITED RELEASE
PRODUCT LAUNCH
Discover unique product
audiences and target
launch messaging
accordingly
TWITTER BOTS
WHY SHOULD I MAKE A TWITTER BOT?
One of the earliest bot platforms
300 million + monthly active users
Ability to incorporate external APIs for richer
content
Weather
Music
Pothole bot (Raspberry Pi)
REST APIS
Tweets
Timelines
GET statuses/mentions_timeline
POST statuses/update
User Streams - GET/User
Mentions
Direct Messages
Favorites (Likes)
Follows
Quoted Tweets
Replies
STREAMING API
RATE LIMITING
API Rate Limiting
Different for each endpoint
Typically 15 minute rolling windows
User Rate Limiting
Based on the number of Tweets a user can publish
2400 per day or 300 per 3 hours
NOW, LET’S MAKE A BOT!
HTTPS://GITHUB.COM/HNEFF/RUBY-TWITTER-BOT
T H A N K YO U !
D O N ( @ U LY S S E A S )
&
A L A N ( @ FA N C Y S A N D W I C H E S ) !
F O R M O R E I N F O R M AT I O N P L E A S E V I S I T
D E V.T W I T T E R . C O M

More Related Content

Viewers also liked

Floods of Twitter Data - StampedeCon 2016
Floods of Twitter Data - StampedeCon 2016Floods of Twitter Data - StampedeCon 2016
Floods of Twitter Data - StampedeCon 2016
StampedeCon
 
C* Summit 2013: Dude, Where's My Tweet? Taming the Twitter Firehose by Andrew...
C* Summit 2013: Dude, Where's My Tweet? Taming the Twitter Firehose by Andrew...C* Summit 2013: Dude, Where's My Tweet? Taming the Twitter Firehose by Andrew...
C* Summit 2013: Dude, Where's My Tweet? Taming the Twitter Firehose by Andrew...
DataStax Academy
 
storm at twitter
storm at twitterstorm at twitter
storm at twitter
Krishna Gade
 
Gnip
GnipGnip
Gnip
aer3090
 
Twitter Tips for Beginners
Twitter Tips for BeginnersTwitter Tips for Beginners
Twitter Tips for Beginners
Buffer
 
Digital, Social & Mobile in 2015
Digital, Social & Mobile in 2015Digital, Social & Mobile in 2015
Digital, Social & Mobile in 2015
We Are Social Singapore
 

Viewers also liked (6)

Floods of Twitter Data - StampedeCon 2016
Floods of Twitter Data - StampedeCon 2016Floods of Twitter Data - StampedeCon 2016
Floods of Twitter Data - StampedeCon 2016
 
C* Summit 2013: Dude, Where's My Tweet? Taming the Twitter Firehose by Andrew...
C* Summit 2013: Dude, Where's My Tweet? Taming the Twitter Firehose by Andrew...C* Summit 2013: Dude, Where's My Tweet? Taming the Twitter Firehose by Andrew...
C* Summit 2013: Dude, Where's My Tweet? Taming the Twitter Firehose by Andrew...
 
storm at twitter
storm at twitterstorm at twitter
storm at twitter
 
Gnip
GnipGnip
Gnip
 
Twitter Tips for Beginners
Twitter Tips for BeginnersTwitter Tips for Beginners
Twitter Tips for Beginners
 
Digital, Social & Mobile in 2015
Digital, Social & Mobile in 2015Digital, Social & Mobile in 2015
Digital, Social & Mobile in 2015
 

Similar to Seattle bot + Twitter data prezo

Connecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter PlatformConnecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter Platform
Andy Piper
 
HackPR at UPR in Mayaguez - September 2015
HackPR at UPR in Mayaguez - September 2015HackPR at UPR in Mayaguez - September 2015
HackPR at UPR in Mayaguez - September 2015
Jonathan Bulava
 
Microservices: Utilizando o Twitter como Plataforma
Microservices: Utilizando o Twitter como PlataformaMicroservices: Utilizando o Twitter como Plataforma
Microservices: Utilizando o Twitter como Plataforma
Juliana Chahoud
 
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs TwitterPHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
iMasters
 
Twitter API 2.0
Twitter API 2.0Twitter API 2.0
Twitter API 2.0
Alex Payne
 
Stringcast Open
Stringcast OpenStringcast Open
Stringcast Open
ahamidi27
 
Social mediaprogramming part2-java-jax-london
Social mediaprogramming part2-java-jax-londonSocial mediaprogramming part2-java-jax-london
Social mediaprogramming part2-java-jax-london
Khanderao Kand
 
Social Media Web Marketing Nov 2009 Wk2
Social Media Web Marketing Nov 2009 Wk2Social Media Web Marketing Nov 2009 Wk2
Social Media Web Marketing Nov 2009 Wk2
PCM creative
 
Bills Pr 2.0 Presentation
Bills Pr 2.0 PresentationBills Pr 2.0 Presentation
Bills Pr 2.0 Presentation
InBlackandWhite
 
Lies you have been told about REST
Lies you have been told about RESTLies you have been told about REST
Lies you have been told about REST
darrelmiller71
 
Yap hack u-2010
Yap hack u-2010Yap hack u-2010
Yap hack u-2010
Sudar Muthu
 
Big data. Opportunità e rischi
Big data. Opportunità e rischiBig data. Opportunità e rischi
Introduction to the Windows Live Platform
Introduction to the Windows Live PlatformIntroduction to the Windows Live Platform
Introduction to the Windows Live Platform
Clint Edmonson
 
YAP - HackU 2011
YAP - HackU 2011YAP - HackU 2011
YAP - HackU 2011
Sudar Muthu
 
API-Craft NYC - Overview of the Twitter APIs with demos
API-Craft NYC - Overview of the Twitter APIs with demosAPI-Craft NYC - Overview of the Twitter APIs with demos
API-Craft NYC - Overview of the Twitter APIs with demos
Twitter Developers
 
John Conroy
John ConroyJohn Conroy
John Conroy
blogtalk
 
Streaming Visualization
Streaming VisualizationStreaming Visualization
Streaming Visualization
Guido Schmutz
 
Building Social Tools
Building Social ToolsBuilding Social Tools
Building Social Tools
Anand Hemmige
 
Twitter API & OAuth 101 TVUG October 2009
Twitter API & OAuth 101 TVUG October 2009Twitter API & OAuth 101 TVUG October 2009
Twitter API & OAuth 101 TVUG October 2009
Andrew Badera
 
LINE Messaging API Workshop
LINE Messaging API WorkshopLINE Messaging API Workshop

Similar to Seattle bot + Twitter data prezo (20)

Connecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter PlatformConnecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter Platform
 
HackPR at UPR in Mayaguez - September 2015
HackPR at UPR in Mayaguez - September 2015HackPR at UPR in Mayaguez - September 2015
HackPR at UPR in Mayaguez - September 2015
 
Microservices: Utilizando o Twitter como Plataforma
Microservices: Utilizando o Twitter como PlataformaMicroservices: Utilizando o Twitter como Plataforma
Microservices: Utilizando o Twitter como Plataforma
 
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs TwitterPHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
PHP Experience 2016 - [Palestra] Experiências e casos de uso com as APIs Twitter
 
Twitter API 2.0
Twitter API 2.0Twitter API 2.0
Twitter API 2.0
 
Stringcast Open
Stringcast OpenStringcast Open
Stringcast Open
 
Social mediaprogramming part2-java-jax-london
Social mediaprogramming part2-java-jax-londonSocial mediaprogramming part2-java-jax-london
Social mediaprogramming part2-java-jax-london
 
Social Media Web Marketing Nov 2009 Wk2
Social Media Web Marketing Nov 2009 Wk2Social Media Web Marketing Nov 2009 Wk2
Social Media Web Marketing Nov 2009 Wk2
 
Bills Pr 2.0 Presentation
Bills Pr 2.0 PresentationBills Pr 2.0 Presentation
Bills Pr 2.0 Presentation
 
Lies you have been told about REST
Lies you have been told about RESTLies you have been told about REST
Lies you have been told about REST
 
Yap hack u-2010
Yap hack u-2010Yap hack u-2010
Yap hack u-2010
 
Big data. Opportunità e rischi
Big data. Opportunità e rischiBig data. Opportunità e rischi
Big data. Opportunità e rischi
 
Introduction to the Windows Live Platform
Introduction to the Windows Live PlatformIntroduction to the Windows Live Platform
Introduction to the Windows Live Platform
 
YAP - HackU 2011
YAP - HackU 2011YAP - HackU 2011
YAP - HackU 2011
 
API-Craft NYC - Overview of the Twitter APIs with demos
API-Craft NYC - Overview of the Twitter APIs with demosAPI-Craft NYC - Overview of the Twitter APIs with demos
API-Craft NYC - Overview of the Twitter APIs with demos
 
John Conroy
John ConroyJohn Conroy
John Conroy
 
Streaming Visualization
Streaming VisualizationStreaming Visualization
Streaming Visualization
 
Building Social Tools
Building Social ToolsBuilding Social Tools
Building Social Tools
 
Twitter API & OAuth 101 TVUG October 2009
Twitter API & OAuth 101 TVUG October 2009Twitter API & OAuth 101 TVUG October 2009
Twitter API & OAuth 101 TVUG October 2009
 
LINE Messaging API Workshop
LINE Messaging API WorkshopLINE Messaging API Workshop
LINE Messaging API Workshop
 

Recently uploaded

ML-PPT-UNIT-2 Generative Classifiers Discriminative Classifiers
ML-PPT-UNIT-2 Generative Classifiers Discriminative ClassifiersML-PPT-UNIT-2 Generative Classifiers Discriminative Classifiers
ML-PPT-UNIT-2 Generative Classifiers Discriminative Classifiers
MastanaihnaiduYasam
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
jitskeb
 
社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .
NABLAS株式会社
 
Sample Devops SRE Product Companies .pdf
Sample Devops SRE  Product Companies .pdfSample Devops SRE  Product Companies .pdf
Sample Devops SRE Product Companies .pdf
Vineet
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
uevausa
 
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
Vietnam Cotton & Spinning Association
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
ytypuem
 
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
agdhot
 
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
oaxefes
 
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理 原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
tzu5xla
 
Overview IFM June 2024 Consumer Confidence INDEX Report.pdf
Overview IFM June 2024 Consumer Confidence INDEX Report.pdfOverview IFM June 2024 Consumer Confidence INDEX Report.pdf
Overview IFM June 2024 Consumer Confidence INDEX Report.pdf
nhutnguyen355078
 
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
hqfek
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
bmucuha
 
Discovering Digital Process Twins for What-if Analysis: a Process Mining Appr...
Discovering Digital Process Twins for What-if Analysis: a Process Mining Appr...Discovering Digital Process Twins for What-if Analysis: a Process Mining Appr...
Discovering Digital Process Twins for What-if Analysis: a Process Mining Appr...
Marlon Dumas
 
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
eudsoh
 
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
mkkikqvo
 
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
hyfjgavov
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
SaffaIbrahim1
 
Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024
ElizabethGarrettChri
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
Timothy Spann
 

Recently uploaded (20)

ML-PPT-UNIT-2 Generative Classifiers Discriminative Classifiers
ML-PPT-UNIT-2 Generative Classifiers Discriminative ClassifiersML-PPT-UNIT-2 Generative Classifiers Discriminative Classifiers
ML-PPT-UNIT-2 Generative Classifiers Discriminative Classifiers
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
 
社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .
 
Sample Devops SRE Product Companies .pdf
Sample Devops SRE  Product Companies .pdfSample Devops SRE  Product Companies .pdf
Sample Devops SRE Product Companies .pdf
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
 
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
[VCOSA] Monthly Report - Cotton & Yarn Statistics March 2024
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
 
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
 
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
 
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理 原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
 
Overview IFM June 2024 Consumer Confidence INDEX Report.pdf
Overview IFM June 2024 Consumer Confidence INDEX Report.pdfOverview IFM June 2024 Consumer Confidence INDEX Report.pdf
Overview IFM June 2024 Consumer Confidence INDEX Report.pdf
 
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
Discovering Digital Process Twins for What-if Analysis: a Process Mining Appr...
Discovering Digital Process Twins for What-if Analysis: a Process Mining Appr...Discovering Digital Process Twins for What-if Analysis: a Process Mining Appr...
Discovering Digital Process Twins for What-if Analysis: a Process Mining Appr...
 
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
 
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
 
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
 
Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
 

Seattle bot + Twitter data prezo

  • 2. TWITTER DATA & BOTS 101 UNDERSTANDING TWITTER DATA & BUILDING A BOT USING THE TWITTER PUBLIC API HARRISON NEFF PARTNER ENGINEER - GNIP @HARRIS_0N
  • 3. REST API What has happened in the past + Publishing content Streaming API What is happening now in real-time CURRENT PUBLIC APIS
  • 4. REST APIS Tweets GET statuses/show/:id Timelines GET statuses/home_timeline GET statuses/user_timeline GET statuses/mentions_timeline POST statuses/update Search GET search/tweets …
  • 5. STREAMING APIS Sample Stream POST statuses/sample 1% random sample POST statuses/filter Up to 1% filtered by @username, keyword, hashtag, etc Filter Stream
  • 6. PUBLIC API GNIP UPGRADE PATH ELEVATED ACCESS
  • 7. GNIP PRODUCTS Real Time APIs PowerTrack Decahose Data Collectors Historical APIs Historical PowerTrack 30-Day Search API Full Archive Search API Insights APIs Audience API Engagement API
  • 8. {      "id":  "tag:search.twitter.com,2005:403224522679009280",      "objectType":  "activity",      "actor":  {          "objectType":  "person",          "id":  "id:twitter.com:1855784545",          "link":  "http://www.twitter.com/LandenEhlers",          "displayName":  "Landen  Ehlers",          "postedTime":  "2013-­‐09-­‐11T23:52:03.000Z",          "image":  "https://pbs.twimg.com/profile_images/378800000646150423/83090ccb95a60def923c674e7bd002a0_normal.jpeg",          "summary":  "Senior  Construction  Science  student  at  Texas  A&M  University.  Barefoot  Waterskiing  National  Champion.  Vice  Pres        "links":  [              {                  "href":  null,                  "rel":  "me"              }          ],          "friendsCount":  65,          "followersCount":  15,          "listedCount":  1,          "statusesCount":  24,          "twitterTimeZone":  null,          "verified":  false,          "utcOffset":  null,          "preferredUsername":  "LandenEhlers",          "languages":  [              "en"   A Tweet may only be 140 Characters, but… it has over 65 data elements
  • 9.  "generator":  {          "displayName":  "Twitter  for  Android",          "link":  "http://twitter.com/download/android"      },      "geo":  {          "type":  "Point",          "coordinates":  [              30.622496,              -­‐96.3283527          ] Application + Point Geo
  • 10.
  • 11.
  • 13. SAVE LIVES Mitigate the impact of annual flooding
  • 14. IDENTIFY FOODBORNE ILLNESS Find signal by monitoring conversations at scale
  • 15. CUSTOMER SERVICE Discover the key source of customer frustration and market to at-risk subscribers in real time
  • 16. LIMITED RELEASE PRODUCT LAUNCH Discover unique product audiences and target launch messaging accordingly
  • 18. WHY SHOULD I MAKE A TWITTER BOT? One of the earliest bot platforms 300 million + monthly active users Ability to incorporate external APIs for richer content Weather Music Pothole bot (Raspberry Pi)
  • 20. User Streams - GET/User Mentions Direct Messages Favorites (Likes) Follows Quoted Tweets Replies STREAMING API
  • 21. RATE LIMITING API Rate Limiting Different for each endpoint Typically 15 minute rolling windows User Rate Limiting Based on the number of Tweets a user can publish 2400 per day or 300 per 3 hours
  • 22. NOW, LET’S MAKE A BOT! HTTPS://GITHUB.COM/HNEFF/RUBY-TWITTER-BOT
  • 23. T H A N K YO U ! D O N ( @ U LY S S E A S ) & A L A N ( @ FA N C Y S A N D W I C H E S ) !
  • 24. F O R M O R E I N F O R M AT I O N P L E A S E V I S I T D E V.T W I T T E R . C O M