SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import json
  2. import pickle
  3.  
  4. data  = json.load(open('connections.json'))
  5.  
  6. following = list(data['following'].keys())
  7. followers = list(data['followers'].keys())
  8.  
  9. non_followers = list(set(following) - set(followers))
  10.  
  11. with open("non_followers.txt", "wb") as fp:   #Pickling
  12.     pickle.dump(non_followers, fp)
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