Tapping into Your Gmail
Google+ is a great source of clean textual data that you can mine, but itâs just one of many starting points. Since this chapter showcases Google technology, this section provides a brief overview of how to tap into your Gmail data so that you can mine the text of what may be many thousands of messages in your inbox. If you havenât read Chapter 3 yet, recall that itâs devoted to mail analysis but focuses primarily on the structured data features of mail messages, such as the participants in mail threads. The techniques outlined in that chapter could be easily applied to Gmail messages, and vice versa.
Accessing Gmail with OAuth
In early 2010, Google announced OAuth access to IMAP and SMTP in Gmail. This was a significant announcement because it officially opened the door to âGmail as a platform,â enabling third-party developers to build apps that can access your Gmail data without you needing to give them your username and password. This section wonât get into the particular nuances of how Xoauth, Googleâs particular implementation of OAuth, works (see No, You Canât Have My Password for a terse introduction to OAuth). Instead, it focuses on getting you up and running so that you can access your Gmail data, which involves just a few simple steps:
Select the âEnable IMAPâ option under the âForwarding and POP/IMAPâ tab in your Gmail Account Settings.
Visit the Google Mail Xoauth Tools wiki page, download the
xoauth.py
command-line utility, ...
Get Mining the Social Web now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.