Community Data Science Course (Spring 2016)/Day 6 Lecture

 Code to get a single Tweet

All the lines up to tweepy.API(auth) are "boilerplate" meaning they are always the same. They take care of authenticating with Python.

Once we have access to Twitter's API, we can use it to do many things. The example above gets the first tweet from your timeline. You can print it as json by doing public_tweets[0]._json.