Skip to content

Instantly share code, notes, and snippets.

@sweemeng
Created November 29, 2009 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sweemeng/244798 to your computer and use it in GitHub Desktop.
Save sweemeng/244798 to your computer and use it in GitHub Desktop.
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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment