Skip to content

Instantly share code, notes, and snippets.

@gargolito
Created June 15, 2020 13:45
Show Gist options
  • Save gargolito/866536da83f2f0b73c9b9ad07a94e023 to your computer and use it in GitHub Desktop.
Save gargolito/866536da83f2f0b73c9b9ad07a94e023 to your computer and use it in GitHub Desktop.
import json
from os import listdir as ls
d = dict()
d['whois'] = list()
for j in ls('.'):
with open(j) as f:
d['whois'].append(json.loads(f.read()))
with open('../whois.json', 'w') as l:
json.dump(d,l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment