Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- import sys
- filename = sys.argv[1]
- contents = []
- try:
- with open(filename, 'r') as f:
- contents = json.load(f)
- except Exception as e:
- print(e)
- result = []
- with open('keys.txt', 'w') as f:
- for item in contents:
- print >> f, item['sec']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement