Adaptations and Extensions of Twitter-Related Examples from Mining the Social Web
Switch branches/tags
Nothing to show
Pull request Compare This branch is 6 commits behind ptwobrussell:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This repository contains code for the 21 Recipes for Mining Twitter (O'Reilly, 2011.) As the name of the title suggests, it's a short cookbook of recipes that's designed to help you solve common problems when working with Twitter data. Some of the recipes are extracted from content presented in Mining the Social Web while others are completely new additions. In either case, they're designed to be bite-sized and serve as the jetpack that you can strap onto that great Twitter mining idea you've been noodling on -- whether it's as simple as running some disposible scripts to crunch some numbers or as extensive as creating full-blown interactive web application.

Preview 21 Recipes for Mining Twitter

You can preview the book here to make sure it's helpful to you before you make a purchase.

Marketing Description


Millions of public Twitter streams harbor a wealth of data, and once you mine them, you can gain some valuable insights. This short and concise book offers a collection of recipes to help you extract nuggets of Twitter information using easy-to-learn Python tools. Each recipe offers a discussion of how and why the solution works, so you can quickly adapt it to fit your particular needs. The recipes include techniques to:

  • Use OAuth to access Twitter data
  • Create and analyze graphs of retweet relationships
  • Use the streaming API to harvest tweets in realtime
  • Harvest and analyze friends and followers
  • Discover friendship cliques
  • Summarize webpages from short URLs

This book is a perfect companion to Mining the Social Web.

See Also