코로나192 [python] Covid19 정보조회 지난 포스팅에서 Golang으로 #Covid19 각국의 감염정보를 조회하는 방법을 알아봤다https://xwing.tistory.com/169이번엔 같은 정보를 파이썬으로 만들어 보겠다.import pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport requestsimport jsonr = requests.get('https://api.covid19api.com/dayone/country/korea-south/status/confirmed', stream=False)html = r.textitems = json.loads(html)df = pd.DataFrame(items)#print (df)df.to_excel (r'Covid19(S.. 2021. 1. 28. [golang] Covid19 정보 조회 Covid19 1년넘게 지겹게 우릴를 괴롭히고 있는는 #Covid19에 대한 정보를 얻을 수 있는 공개된 API는 이미 많이 있다.. 구글검색 조금만 하면 쉽게 찾을 수 있다. 이번엔 API를 이용해서 우리나라의 코로나19 감염발생자수를 조회해 보자 package main import ( "encoding/json" "fmt" "io/ioutil" "net/http" ) type Country struct { Country string CountryCode string Province string City string CityCode string Lat string Lon string Cases int Status string Date string } func main() { url := "https:/.. 2021. 1. 27. 이전 1 다음