공공데이터 포털API 사용법(www.data.go.kr)

https://www.data.go.kr/data/15096405/openapi.do

The National Cancer Center_Pancreatic Cancer_Library_Diagnostic Examination_National Cancer Center_Pancreatic Cancer Total Information Inquiry Service provides items such as authentication key, page count, result code, base year, and list.www.data.go.kr

3999th of all data obtained using the National Cancer Center API

application for utilization of

Import sample code from bottom

Import sample code from bottom

importrequestsimportjsonfrombs4importBeautifulSoup#——————————————————————————————-service_key=”izyPINI4f5filxb%2B9ffUJ%2BWPFUPnwxN1wvJGdrBFQlIPpEwFWzetLFSJMMB5187OAYOUXJggU87AR7xuNlx3FYg%3D%3D”url=f”http://apis.data.go.kr/B551172/Pancreatic14/dtlExamByType?serviceKey={service_key}&numOfRows=1&pageNo=3999&type=json&centerNm=립암센&from터&fromYear=2010&toYear=2019″response=requests(“GET”,url)response_data=jsion.request(respon.text)#print(respon(response.————————————–url=’http://apis.data.go.kr/B551172/Pancreatic14/dtlExamByType’service_key=”izypiNI4f5ilxb+9ffUJ+WPFUPnwxN1wvJGdrBFQlIPpEwFWzetLFSJMMB5187OAYOUXJggU87AR7xuNlx3FYg=”params=={‘serviceKey’:service_key,’type’:’json’,’pageNo’:’3999′,’numOfRows’:’1′,’centerNm’:’립암센터”,’fromYear’:’2010′,’toYear’:’2019′}response=requests.get(url,params=params)subscripted_data=json.print(response.text)#print(subscripted_data,type(subscripted_data))#————————————————————————————————————————————————————————–5ilxb+9ffUJ+WPFUPnwxN1wvJGdrBFQlIPpEwFWzetLFSJMMB5187OAYOUXJggU87AR7xuNlx3FYg=”params=={‘serviceKey’:service_key,’type’:’xml’,’pageNo’:’3999′,’numOfRows’:’1′,’centerNm’:’립암센터’,’fromYear’:’2010′,’toYear’:’2019′}response=requests.get(url,params=params)beautiful=BeautifulSoup(response.content,’html.parser’)result=soup.find(soup.find)item’)#—————————————————————————————————————————————————————–item(respon

importrequestsimportjsonfrombs4importBeautifulSoup#——————————————————————————————————————————————————————————————————————————————————————–http://apis.data.go.kr/B551172/Pancreatic14/dtlExamByType?serviceKey={service_key}&numOfRows=1&pageNo=3999&type=json&centerNm=립암센&from터&fromYear=2010&toYear=2019″response=requests(“GET”,url)response_data=jsion.request(respon.text)#print(respon(response.————————————–url=’http://apis.data.go.kr/B551172/Pancreatic14/dtlExamByType’service_key=”izypiNI4f5ilxb+9ffUJ+WPFUPnwxN1wvJGdrBFQlIPpEwFWzetLFSJMMB5187OAYOUXJggU87AR7xuNlx3FYg=”params=={‘serviceKey’:service_key,’type’:’json’,’pageNo’:’3999′,’numOfRows’:’1′,’centerNm’:’립암센터”,’fromYear’:’2010′,’toYear’:’2019′}response=requests.get(url,params=params)subscripted_data=json.print(response.text)#print(subscripted_data,type(subscripted_data))#————————————————————————————————————————————————————————————————————————————————–_key,’type’:’xml’,’pageNo’:’3999′,’numOfRows’:’1′,’centerNm’:’립암센터’,’fromYear’:’2010′,’toYear’:’2019′}response=requests.get(url,params=params)beautiful=BeautifulSoup(response.content,’html.parser’)result=soup.find(soup.find)item’)#———————————————————————————————————————————————————————————— item (respon

error: Content is protected !!