I started reading the excellent Mining the Social Web by Matthew Russell published by O'Reilly, one of my favorite publishers of technology books. The book discusses how the incredible social data from Facebook, Twitter, LinkedIn, and other social media sites can be programmatically accessed and harvested for later research and analysis. (If you are interested, you can follow the author of this book on Twitter @ptwobrussell and @SocialWebMining) |
Chapter one discusses how to access Twitter through a command line interface and Python using Mike Cardone's Python Twitter Tools.
After being sure that easy_install was working (and knowing that Python was already running on my Mac OS X laptop), It was easy enough to get PTT installed - using Terminal (the Mac OS X command line terminal emulator), I just typed in:
$ easy_install twitter
Once installed, you can tweet from Terminal with a simple command like:
$ twitter set "Class work day in #unidigadv #blogging #tweeting"One quick command, and a second later, my tweet was live:
Class work day in #unidigadv #blogging #tweeting
— Matthew Wilson (@cecilkleakins) October 5, 2012
Now that's a pretty cool party trick, but the real power of accessing data from the social web lies in integrating the Twitter API with a programming languages like Python or Ruby to gather, analyze, and visualize the data in interesting ways.
If you're interested in learning more, check out this book - or its companion volume, 21 Recipes for Mining Twitter.
No comments:
Post a Comment