This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import twitter | |
import pydot | |
api = twitter.Api(username='usename',password='password') | |
g=pydot.Dot(graph_type='graph',font='verdana',overlap='false') | |
[g.add_edge(pydot.Edge('username',i.name)) for i in api.GetFriends()] | |
g.write_svg('socialnet.svg',prog='neato') |
The result is.....not nice, because
1) The image is large
2) This is a very simple experiment, so i only check my follower, nothing in depth.
and i will not post the image, because of size, and privacy reason.
so probably more of this coming soon
No comments:
Post a Comment