Created
May 13, 2020 16:33
-
-
Save phanthaihuan/ca14cec7195802525c367f636a928869 to your computer and use it in GitHub Desktop.
How to parse the content from Json with Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import os | |
PWD = os.getcwd() | |
file_path = os.path.join(PWD, 'distros.js') | |
with open(file_path) as f: | |
distros_dict = json.load(f) | |
for distro in distros_dict: | |
print(distro['Name']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment