Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to Access the Twitter Streaming API (with P...

HuPy
September 30, 2015

How to Access the Twitter Streaming API (with Python)

HuPy

September 30, 2015

Transcript

8 slides
  1. The Tale of to APIs REST • Searching • Tweets

    and users • Access limits Streaming • Monitoring • Tweets • Reconnection limits Connect Download Disconnect Process Connect Download Disconnect Process
  2. The Tools of the Trade • dev.twitter.com – API keys

    • Requests – urllib.request • Requests Oauthlib • json
  3. Streaming Endpoint Categories • Public – All the tweets (almost)

    – Great for text mining • User – Single-user view • Site – Multi-user view
  4. Public Streams • Firehose • Sample • Filter – A

    lot like search from the REST – Real time – Relevance is only minimally considered

More Decks by HuPy

Other Decks in Technology