Linguist 278: Programming for Linguists
Stanford Linguistics, Fall 2021
Christopher Potts

Basic Twitter API usage

This notebook provides very basic functionality for using the Twitter API (Application Programming Interface) to download tweets with their metadata using keywords. Check out Twitter's documentation for much more!

Contents

  1. Set-up
  2. Tweets
  3. Users
  4. Merger

Set-up

Apply for developer access at

https://developer.twitter.com/

and you'll be given a Bearer Token to use here:

Tweets

Users

Merger