Python [ Python ] 파이썬으로 JSON 분석하기 심플예제 ( 소스코드 ) 사진찍는 개발자 2018. 2. 21. 10:40 이웃추가 본문 기타 기능 웹상에 있는 JSON 형식의 데이터를 파일로 받아와 해당 파일을 메모리에 두어 분석하는 예제입니다. import urllib.request as req import os.path, random import json import ssl ssl._create_default_https_context = ssl.
_create_unverified_context # JSON 데이터 내려받기 url = "https://api.github.com/repositories" savename = "repo.json" if not os.path.exists(savename): req.urlretrieve(url,savename) # JSON 파일 분석하기. items = json.load(open(savename,"r",encoding="utf-...
#
JSON
#
Python
#
소스코드
#
파이썬