SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import json
  2. from sys import argv
  3.  
  4. keys = []
  5. with open(argv[1]) as json_data:
  6.     data = json.load(json_data)
  7.     for item in data["keys"]:
  8.         keys.append(item["sec"])
  9.        
  10. with open("keys_output.txt") as output_file:
  11.     for key in keys:
  12.         output_file.write(key + '\n')
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top