daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest Apr 20th, 2018 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import twitter
  2. import pydot
  3. api = twitter.Api(username='usename',password='password')
  4. g=pydot.Dot(graph_type='graph',font='verdana',overlap='false')
  5. [g.add_edge(pydot.Edge('username',i.name)) for i in api.GetFriends()]
  6. g.write_svg('socialnet.svg',prog='neato')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top