import requests

# requests.get(url)
# requests.post(url, data={"id":"username"})

r = requests.get('http://openapi.seoul.go.kr:8088/6d4d776b466c656533356a4b4b5872/json/RealtimeCityAir/1/99')
rjson = r.json()

gus = rjson['RealtimeCityAir']['row']
for gu in gus:
    gu_name = gu["MSRRGN_NM"]
    misae_value = gu["IDEX_MVL"]
    #print(gu_name + ':' + str(misae_value))
    if misae_value < 20:
        print(gu_name)

# str : 강제로 문자열로 변환하는 기능
