Python Workshops for Beginners/October 25th Twitter project

From OpenHatch wiki

Building a Dataset using the Twitter API

In this project, we will explore a few ways to gather data using the Twitter API. Once we've done that done, we will extend this to code to create our own datasets of tweets that we might be able to use to ask and answer questions in the final session.


  • Get set up to build datasets with the Twitter API
  • Have fun collecting different types of tweets using a variety of ways to search
  • Pratice reading and extending other people's code
  • Create a few collections of Tweets you can do research with in the final section


To participate in the Twitter afternoon session, you must have registered with Twitter as a developer before the session by following the Twitter authentication setup instructions. If you did not do this, or if you tried but did not succeed, please attend one of the other two sessions instead.


Download and test the Twitter project

If you are confused by these steps, go back and refresh your memory with the Friday September 26th setup and tutorial and Friday September 26th Tutorial

(Estimated time: 10 minutes)

  • Windows (Note: Provided code for Windows users is slightly different. Windows users *must* download the package from this setup page in order for things to print to the console properly.)
  • OS X
  • Linux