using_open_api_example
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
using_open_api_example [2020/06/09 13:42] – hkimscil | using_open_api_example [2024/05/23 10:25] (current) – hkimscil | ||
---|---|---|---|
Line 32: | Line 32: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | |||
+ | http:// | ||
+ | http:// | ||
+ | |||
+ | < | ||
+ | install.packages(" | ||
+ | library(XML) | ||
+ | # | ||
+ | # https:// | ||
+ | # | ||
+ | mykey <- " | ||
+ | # | ||
+ | # | ||
+ | url = " | ||
+ | auth_key = mykey | ||
+ | type = ' | ||
+ | service = ' | ||
+ | startindex = ' | ||
+ | endindex = ' | ||
+ | api_url = paste(url, auth_key, type, service, startindex, endindex, sep = '/' | ||
+ | |||
+ | api_url | ||
+ | |||
+ | parsedXml < | ||
+ | |||
+ | rowXml <- getNodeSet(parsedXml, | ||
+ | |||
+ | api_data < | ||
+ | |||
+ | #구조 확인 | ||
+ | str(api_data) | ||
+ | |||
+ | #테이블 확인 | ||
+ | View(api_data) | ||
+ | api_data | ||
+ | |||
+ | write.table(api_data, | ||
+ | file = " | ||
+ | append = FALSE, quote = TRUE, sep = ",", | ||
+ | eol = " | ||
+ | row.names = F) | ||
+ | |||
+ | </ | ||
+ | |||
---- | ---- |
using_open_api_example.1591677757.txt.gz · Last modified: 2020/06/09 13:42 by hkimscil