#사이트에서 date, settlement 추출하고 엑셀로 정리 및 차트 작성

from urllib.request import urlopen
import json

from_date = "2019-01-01"
to_date = "2019-12-23"

url = "http://www.krei.re.kr:18181/chart/main_chart/index/kind/W/sdate/" + from_date + "/edate" + to_date

text = urlopen(url)
json_objs = json.load(text)


items = json_objs
for item in items:
    print(item['date'],"@",item['settlement'])



dacf114325ccff694071cc5baf2c9b40967c80cf
<mask token>

<mask token>
for item in items:
    print(item['date'], '@', item['settlement'])

<mask token>
from_date = '2019-01-01'
to_date = '2019-12-23'
url = ('http://www.krei.re.kr:18181/chart/main_chart/index/kind/W/sdate/' +
    from_date + '/edate' + to_date)
text = urlopen(url)
json_objs = json.load(text)
items = json_objs
for item in items:
    print(item['date'], '@', item['settlement'])

from urllib.request import urlopen
import json
from_date = '2019-01-01'
to_date = '2019-12-23'
url = ('http://www.krei.re.kr:18181/chart/main_chart/index/kind/W/sdate/' +
    from_date + '/edate' + to_date)
text = urlopen(url)
json_objs = json.load(text)
items = json_objs
for item in items:
    print(item['date'], '@', item['settlement'])

#사이트에서 date, settlement 추출하고 엑셀로 정리 및 차트 작성

from urllib.request import urlopen
import json

from_date = "2019-01-01"
to_date = "2019-12-23"

url = "http://www.krei.re.kr:18181/chart/main_chart/index/kind/W/sdate/" + from_date + "/edate" + to_date

text = urlopen(url)
json_objs = json.load(text)


items = json_objs
for item in items:
    print(item['date'],"@",item['settlement'])


