[R] 데이터 가져오기
# JSON :[{}] 텍스트 데이터 형식 # https://api.github.com/repositories 제이슨 형태의 데이터 # json 데이터 가져오기 url = "https://api.github.com/repositories" savename2 = "repo.json" # repo.json 형태로 파일을 저장하겠다 if not os.path.exists(savename2): req.urlretrieve(url, savename2) 파일 생성됨 import json items = json.load(open(savename2, "r", encoding="utf-8")) print(items) 리스트 안에 딕셔너리 형태로 읽어짐 딕셔너리 안에 있는 딕셔너리를 가져오..
2022.10.09