In this recipe, we will show how to analyze social data in Python. Social data is generated by people's activity on social networks such as Facebook, Twitter, Google+, GitHub, and others.
In this recipe, we will analyze and visualize a Twitter user's social network with NetworkX.
First, you need to install the Twitter Python package. You can install it with
pip install twitter. You'll find more information at https://pypi.python.org/pypi/twitter.
Then, you need to obtain authentication codes in order to access your Twitter data. The procedure is free. In addition to a Twitter account, you also need to create an Application on the Twitter Developers website at https://dev.twitter.com/apps. Then, ...