728x90 ๋ฐ์ํ Open API5 Guide: Converting KOICA OpenAPI Data to Files Using Python (2) This guide explains how to fetch data from KOICA OpenAPI and convert it into Excel files using Python code. It includes the process of saving data to files and provides concrete code examples Guide: Python Code for Converting KOICA OpenAPI Data to Files | ExcelsKOICA ์คํAPI๋ฐ์ดํฐ๋ฅผ ํ์ผ๋ฐ์ดํฐ๋ก ๋ณํํ๋ ํ์ด์ฌ ์ฝ๋ ๊ฐ์ด๋2. Name of data used: KOICA Local Safety Information(ํ๊ตญ๊ตญ์ ํ๋ ฅ๋จ_ํ์ง ์์ ์ ๋ณด)Google Colab: https://colab.r.. 2024. 8. 8. Guide: Converting KOICA OpenAPI Data to Files Using Python (1) Guide: Python Code for Converting KOICA OpenAPI Data to Files | ExcelsKOICA ์คํAPI๋ฐ์ดํฐ๋ฅผ ํ์ผ๋ฐ์ดํฐ๋ก ๋ณํํ๋ ํ์ด์ฌ ์ฝ๋ ๊ฐ์ด๋1. Name of data used: KOICA ODA Project Information - KF Public Diplomacy Projects (ํ๊ตญ๊ตญ์ ํ๋ ฅ๋จ_KOICA ODA ์ฌ์ ์ ๋ณด_KF-๊ณต๊ณต์ธ๊ต ์ฌ์ ์ ๋ณด)Google Colab: https://colab.research.google.com/drive/10BISX58wfqgf2dZSR-izYJjzB1XIpEyU?usp=sharing KOICA OpenAPI Data (19 Records) from Public Data Portal ๋ฐ์ดํฐ๋ช : ํ๊ตญ๊ตญ์ ํ.. 2024. 8. 7. Getting Started with Open API (3) Converting Data from Open API to Excel on data.go.krํ์ ์์ ๋ถ_ํต๊ณ์ฐ๋ณด_์ธ๊ตฌ ๊ท๋ชจ๋ณ ํ์ ๊ตฌ์ญ 1. ๊ณต๊ณต๋ฐ์ดํฐํฌํธ์ ์คํAPI๋ก ์ ๊ณต๋ "ํ์ ์์ ๋ถ - ํต๊ณ์ฐ๋ณด ์ธ๊ตฌ ๊ท๋ชจ๋ณ ํ์ ๊ตฌ์ญ" ์๋ฃ๋ฅผ ๊ตฌ๊ธ์ฝ๋ฉ ํ์ด์ฌ ์ฝ๋๋ฅผ ํตํด ํ์ผ๋ฐ์ดํฐ๋ก ๋ณํํ๊ธฐ ์ํ์ฌ "ํ์ฉ์ ์ฒญ"์ ํ์ฌ URL๊ณผ ์๋น์ค ์ธ์ฆํค๋ฅผ ๋ฐ๊ธ๋ฐ์์ต๋๋ค. 2. ๊ธฐ์ ๋ฌธ์ ๋ค์ด๋ฐ์ ์์ฒญ ๋ฐ ์๋ต ๋ฉ์ธ์ง ํ์ธ๊ธฐ์ ๋ฌธ์๋ช : ํ์ ์์ ๋ถ ํ์ ·์์ ๊ณต๊ณต๋ฐ์ดํฐ Open API ํ์ฉ๊ฐ์ด๋1. ์๋น์ค ๋ช ์ธ > ๋ค. ์์ธ๊ธฐ๋ฅ ๋ด์ญ > b. ์์ฒญ ๋ฉ์์ง ๋ช ์ธ & c. ์๋ต ๋ฉ์์ง ๋ช ์ธ 3. ๊ตฌ๊ธ์ฝ๋ฉ ์คํ์ ์ํ API URL์ "Call Back URL"์นธ์ ํ์ฉํด์ผ ํฉ๋๋ค.1. ์๋น์ค ๋ช ์ธ > 1.1 ๊ณต๊ณต๋ฐ์ดํฐ API .. 2024. 8. 1. Getting Started with Open API (2) Open API (Application Programming Interface) ์ดํดํ๊ธฐ - XML to Exceldata.go.kr API ๊ตฌ์กฐ ์ดํดํ๊ธฐ ์ ๊ฐ ์คํ API ํ์ฉ์ ์ฒญ์ ํ ๋ฐ์ดํฐ๋ช ์ "ํ์ ์์ ๋ถ_์ง์ญ๋ณ ์ธ๊ตฌ์ด๋ ํํฉ" ์ ๋๋ค.๋ง์ดํ์ด์ง > ๋ฐ์ดํฐ ํ์ฉ > Open API > ํ์ฉ์ ์ฒญ ํํฉ > ์๋ ํ์ฉ์ ์ฒญํ ๋ชฉ๋ก ์ ํ > ๊ฐ๋ฐ๊ณ์ ์์ธ๋ณด๊ธฐ [๊ฐ๋ฐ๊ณ์ ์์ธ๋ณด๊ธฐ] ์์ API ํธ์ถ URL ์ฃผ์์ธ End Point ๋ฐ API ํ๋ผ๋ฏธํฐ ํ์ธ 1. End Point | API ํธ์ถ URL ์ฃผ์ ํ์ธ http://apis.data.go.kr/1741000/ppltnDataStushttp://apis.data.go.kr/1741000/ppltnDataStus : Base URLhtt.. 2024. 8. 1. Getting Started with Open API (1) Importing Data from OpenAPI on Public Data Portal to Excel File using Python in Google Colab๊ณต๊ณต๋ฐ์ดํฐํฌํธ ์คํAPI ๋ฐ์ดํฐ ๊ตฌ๊ธ์ฝ๋ฉ ํ์ด์ฌ ํตํด ์์ ๋ก ๊ฐ์ ธ์ค๋ ๋ฐฉ๋ฒ์ธ๊ต๋ถ_๊ตญ๊ฐโ์ง์ญ๋ณ ์ธ๊ตฌ์ฆ๊ฐ ์ ๋ณด 1. ํ์ํ ์๋ฃ ๊ฒ์ ํ Open API "ํ์ฉ์ ์ฒญ"ํ์ฌ ์ธ์ฆํค๋ฅผ ๋ฐ๊ธ๋ฐ์์ผ ํฉ๋๋ค. ์ ๋ ์คํ API๋ก ์ ์ฅ๋ "์ธ๊ต๋ถ_๊ตญ๊ฐโ์ง์ญ๋ณ ์ธ๊ตฌ์ฆ๊ฐ ์ ๋ณด"๋ฅผ ์์ ํ์ผ๋ก ๊ฐ์ ธ์ค๋๋ก ํ๊ฒ ์ต๋๋ค. 2. ํ์ฉ์ ์ฒญ์ ํ์ฌ ์ธ์ฆํค ๋ฑ ์์ ๋ก ๋ฐ์ดํฐ๋ฅผ ๋ณํํ๊ธฐ ์ํด ํ์ํ ์ ๋ณด๋ฅผ ๋ฐ๊ธ ๋ฐ์์ผ ํฉ๋๋ค. - End Point (URL)- ์ผ๋ฐ ์ธ์ฆํค (Decoding) (1) ํ > ๋ง์ดํ์ด์ง > ๋ฐ์ดํฐ ํ์ฉ > Open API > ํ์ฉ์ ์ฒญ ํํฉ.. 2024. 7. 22. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ