SlideShare a Scribd company logo
1 of 5
Download to read offline
COVID19Py by Konstantinos Kamaropoulos
Python package for easy access to up-to-date Coronavirus (COVID-19, SARS-CoV-2) cases data.
Installation:
pip install COVID19Py
Example:
import COVID19Py
covid19 = COVID19Py.COVID19()
covid19 = COVID19Py.COVID19(data_source="csbs")
print(covid19.getLatest())
>>Output
{'confirmed': 1272115, 'deaths': 69374, 'recovered': 0}
##Turkey
covid19.getLocationByCountryCode("TR", timelines=True)
>>Output
[{'id': 213,
'country': 'Turkey',
'country_code': 'TR',
'country_population': 77804122,
'province': '',
'last_updated': '2020-04-06T23:05:01.184968Z',
'coordinates': {'latitude': '38.9637', 'longitude': '35.2433'},
'latest': {'confirmed': 27069, 'deaths': 574, 'recovered': 0},
'timelines': {'confirmed': {'latest': 27069,
'timeline': {'2020-01-22T00:00:00Z': 0,
'2020-01-23T00:00:00Z': 0,
'2020-01-24T00:00:00Z': 0,
'2020-01-25T00:00:00Z': 0,
'2020-01-26T00:00:00Z': 0,
'2020-01-27T00:00:00Z': 0,
'2020-01-28T00:00:00Z': 0,
'2020-01-29T00:00:00Z': 0,
'2020-01-30T00:00:00Z': 0,
'2020-01-31T00:00:00Z': 0,
'2020-02-01T00:00:00Z': 0,
'2020-02-02T00:00:00Z': 0,
'2020-02-03T00:00:00Z': 0,
'2020-02-04T00:00:00Z': 0,
'2020-02-05T00:00:00Z': 0,
'2020-02-06T00:00:00Z': 0,
'2020-02-07T00:00:00Z': 0,
'2020-02-08T00:00:00Z': 0,
'2020-02-09T00:00:00Z': 0,
'2020-02-10T00:00:00Z': 0,
'2020-02-11T00:00:00Z': 0,
'2020-02-12T00:00:00Z': 0,
'2020-02-13T00:00:00Z': 0,
'2020-02-14T00:00:00Z': 0,
'2020-02-15T00:00:00Z': 0,
'2020-02-16T00:00:00Z': 0,
'2020-02-17T00:00:00Z': 0,
'2020-02-18T00:00:00Z': 0,
'2020-02-19T00:00:00Z': 0,
'2020-02-20T00:00:00Z': 0,
'2020-02-21T00:00:00Z': 0,
'2020-02-22T00:00:00Z': 0,
'2020-02-23T00:00:00Z': 0,
'2020-02-24T00:00:00Z': 0,
'2020-02-25T00:00:00Z': 0,
'2020-02-26T00:00:00Z': 0,
'2020-02-27T00:00:00Z': 0,
'2020-02-28T00:00:00Z': 0,
'2020-02-29T00:00:00Z': 0,
'2020-03-01T00:00:00Z': 0,
'2020-03-02T00:00:00Z': 0,
'2020-03-03T00:00:00Z': 0,
'2020-03-04T00:00:00Z': 0,
'2020-03-05T00:00:00Z': 0,
'2020-03-06T00:00:00Z': 0,
'2020-03-07T00:00:00Z': 0,
'2020-03-08T00:00:00Z': 0,
'2020-03-09T00:00:00Z': 0,
'2020-03-10T00:00:00Z': 0,
'2020-03-11T00:00:00Z': 1,
'2020-03-12T00:00:00Z': 1,
'2020-03-13T00:00:00Z': 5,
'2020-03-14T00:00:00Z': 5,
'2020-03-15T00:00:00Z': 6,
'2020-03-16T00:00:00Z': 18,
'2020-03-17T00:00:00Z': 47,
'2020-03-18T00:00:00Z': 98,
'2020-03-19T00:00:00Z': 192,
'2020-03-20T00:00:00Z': 359,
'2020-03-21T00:00:00Z': 670,
'2020-03-22T00:00:00Z': 1236,
'2020-03-23T00:00:00Z': 1529,
'2020-03-24T00:00:00Z': 1872,
'2020-03-25T00:00:00Z': 2433,
'2020-03-26T00:00:00Z': 3629,
'2020-03-27T00:00:00Z': 5698,
'2020-03-28T00:00:00Z': 7402,
'2020-03-29T00:00:00Z': 9217,
'2020-03-30T00:00:00Z': 10827,
'2020-03-31T00:00:00Z': 13531,
'2020-04-01T00:00:00Z': 15679,
'2020-04-02T00:00:00Z': 18135,
'2020-04-03T00:00:00Z': 20921,
'2020-04-04T00:00:00Z': 23934,
'2020-04-05T00:00:00Z': 27069}},
'deaths': {'latest': 574,
'timeline': {'2020-01-22T00:00:00Z': 0,
'2020-01-23T00:00:00Z': 0,
'2020-01-24T00:00:00Z': 0,
'2020-01-25T00:00:00Z': 0,
'2020-01-26T00:00:00Z': 0,
'2020-01-27T00:00:00Z': 0,
'2020-01-28T00:00:00Z': 0,
'2020-01-29T00:00:00Z': 0,
'2020-01-30T00:00:00Z': 0,
'2020-01-31T00:00:00Z': 0,
'2020-02-01T00:00:00Z': 0,
'2020-02-02T00:00:00Z': 0,
'2020-02-03T00:00:00Z': 0,
'2020-02-04T00:00:00Z': 0,
'2020-02-05T00:00:00Z': 0,
'2020-02-06T00:00:00Z': 0,
'2020-02-07T00:00:00Z': 0,
'2020-02-08T00:00:00Z': 0,
'2020-02-09T00:00:00Z': 0,
'2020-02-10T00:00:00Z': 0,
'2020-02-11T00:00:00Z': 0,
'2020-02-12T00:00:00Z': 0,
'2020-02-13T00:00:00Z': 0,
'2020-02-14T00:00:00Z': 0,
'2020-02-15T00:00:00Z': 0,
'2020-02-16T00:00:00Z': 0,
'2020-02-17T00:00:00Z': 0,
'2020-02-18T00:00:00Z': 0,
'2020-02-19T00:00:00Z': 0,
'2020-02-20T00:00:00Z': 0,
'2020-02-21T00:00:00Z': 0,
'2020-02-22T00:00:00Z': 0,
'2020-02-23T00:00:00Z': 0,
'2020-02-24T00:00:00Z': 0,
'2020-02-25T00:00:00Z': 0,
'2020-02-26T00:00:00Z': 0,
'2020-02-27T00:00:00Z': 0,
'2020-02-28T00:00:00Z': 0,
'2020-02-29T00:00:00Z': 0,
'2020-03-01T00:00:00Z': 0,
'2020-03-02T00:00:00Z': 0,
'2020-03-03T00:00:00Z': 0,
'2020-03-04T00:00:00Z': 0,
'2020-03-05T00:00:00Z': 0,
'2020-03-06T00:00:00Z': 0,
'2020-03-07T00:00:00Z': 0,
'2020-03-08T00:00:00Z': 0,
'2020-03-09T00:00:00Z': 0,
'2020-03-10T00:00:00Z': 0,
'2020-03-11T00:00:00Z': 0,
'2020-03-12T00:00:00Z': 0,
'2020-03-13T00:00:00Z': 0,
'2020-03-14T00:00:00Z': 0,
'2020-03-15T00:00:00Z': 0,
'2020-03-16T00:00:00Z': 0,
'2020-03-17T00:00:00Z': 1,
'2020-03-18T00:00:00Z': 1,
'2020-03-19T00:00:00Z': 3,
'2020-03-20T00:00:00Z': 4,
'2020-03-21T00:00:00Z': 9,
'2020-03-22T00:00:00Z': 30,
'2020-03-23T00:00:00Z': 37,
'2020-03-24T00:00:00Z': 44,
'2020-03-25T00:00:00Z': 59,
'2020-03-26T00:00:00Z': 75,
'2020-03-27T00:00:00Z': 92,
'2020-03-28T00:00:00Z': 108,
'2020-03-29T00:00:00Z': 131,
'2020-03-30T00:00:00Z': 168,
'2020-03-31T00:00:00Z': 214,
'2020-04-01T00:00:00Z': 277,
'2020-04-02T00:00:00Z': 356,
'2020-04-03T00:00:00Z': 425,
data = covid19.getAll(timelines=True)
data
>>Output:
{'latest': {'confirmed': 359991, 'deaths': 10189, 'recovered': 0},
'locations': [{'id': 0,
'country': 'US',
'country_code': 'US',
'country_population': 310232863,
'province': 'New York',
'county': 'New York',
'last_updated': '2020-04-06T18:53:00Z',
'coordinates': {'latitude': '40.71455', 'longitude': '-74.00714'},
'latest': {'confirmed': 72181, 'deaths': 3485, 'recovered': 0}},
{'id': 1,
'country': 'US',
'country_code': 'US',
'country_population': 310232863,
'province': 'New York',
'county': 'Nassau',
'last_updated': '2020-04-06T18:53:00Z',
'coordinates': {'latitude': '40.74165225', 'longitude': '-73.5889961
9'},
'latest': {'confirmed': 15616, 'deaths': 162, 'recovered': 0}},
{'id': 2,
'country': 'US',
'country_code': 'US',
'country_population': 310232863,
'province': 'New York',
'county': 'Westchester',
'last_updated': '2020-04-06T18:53:00Z',
'coordinates': {'latitude': '41.16319759', 'longitude': '-73.7560629
'},
'latest': {'confirmed': 14294, 'deaths': 197, 'recovered': 0}},
{'id': 3,
'country': 'US',
'country_code': 'US',
'country_population': 310232863,
'province': 'New York',
'county': 'Suffolk',
'last_updated': '2020-04-06T18:53:00Z',
'coordinates': {'latitude': '40.87732808', 'longitude': '-72.8589803
6'},
'latest': {'confirmed': 14185, 'deaths': 199, 'recovered': 0}},
{'id': 4,
'country': 'US',
'country_code': 'US',
'country_population': 310232863,
'province': 'New York',
'county': 'Rockland',
'last_updated': '2020-04-06T18:53:00Z',
'coordinates': {'latitude': '41.152374', 'longitude': '-74.02401032'
},
'latest': {'confirmed': 5703, 'deaths': 69, 'recovered': 0}},
{'id': 5,
'country': 'US',
'country_code': 'US',
'country_population': 310232863,
'province': 'New York',
'county': 'Orange',
'last_updated': '2020-04-06T18:53:00Z',
'coordinates': {'latitude': '41.40206825', 'longitude': '-74.3055956
7'},
'latest': {'confirmed': 3397, 'deaths': 53, 'recovered': 0}},
{'id': 6,
'country': 'US',
'country_code': 'US',
'country_population': 310232863,
'province': 'New York',
'county': 'Dutchess',
'last_updated': '2020-04-06T18:53:00Z',
'coordinates': {'latitude': '41.76477515', 'longitude': '-73.7428168
4'},
……………………………..
……
by VOLKAN OBAN

More Related Content

More from Dr. Volkan OBAN

k-means Clustering and Custergram with R
k-means Clustering and Custergram with Rk-means Clustering and Custergram with R
k-means Clustering and Custergram with RDr. Volkan OBAN
 
Data Science and its Relationship to Big Data and Data-Driven Decision Making
Data Science and its Relationship to Big Data and Data-Driven Decision MakingData Science and its Relationship to Big Data and Data-Driven Decision Making
Data Science and its Relationship to Big Data and Data-Driven Decision MakingDr. Volkan OBAN
 
Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.Dr. Volkan OBAN
 
Scikit-learn Cheatsheet-Python
Scikit-learn Cheatsheet-PythonScikit-learn Cheatsheet-Python
Scikit-learn Cheatsheet-PythonDr. Volkan OBAN
 
Python Pandas for Data Science cheatsheet
Python Pandas for Data Science cheatsheet Python Pandas for Data Science cheatsheet
Python Pandas for Data Science cheatsheet Dr. Volkan OBAN
 
Pandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheetPandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheetDr. Volkan OBAN
 
ReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an exampleReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an exampleDr. Volkan OBAN
 
ReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an exampleReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an exampleDr. Volkan OBAN
 
R-ggplot2 package Examples
R-ggplot2 package ExamplesR-ggplot2 package Examples
R-ggplot2 package ExamplesDr. Volkan OBAN
 
R Machine Learning packages( generally used)
R Machine Learning packages( generally used)R Machine Learning packages( generally used)
R Machine Learning packages( generally used)Dr. Volkan OBAN
 
treemap package in R and examples.
treemap package in R and examples.treemap package in R and examples.
treemap package in R and examples.Dr. Volkan OBAN
 
imager package in R and examples..
imager package in R and examples..imager package in R and examples..
imager package in R and examples..Dr. Volkan OBAN
 
R-Data table Cheat Sheet
R-Data table Cheat SheetR-Data table Cheat Sheet
R-Data table Cheat SheetDr. Volkan OBAN
 
Advanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part IIAdvanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part IIDr. Volkan OBAN
 
Advanced Data Visualization in R- Somes Examples.
Advanced Data Visualization in R- Somes Examples.Advanced Data Visualization in R- Somes Examples.
Advanced Data Visualization in R- Somes Examples.Dr. Volkan OBAN
 
Some R Examples[R table and Graphics] -Advanced Data Visualization in R (Some...
Some R Examples[R table and Graphics] -Advanced Data Visualization in R (Some...Some R Examples[R table and Graphics] -Advanced Data Visualization in R (Some...
Some R Examples[R table and Graphics] -Advanced Data Visualization in R (Some...Dr. Volkan OBAN
 
Rcommands-for those who interested in R.
Rcommands-for those who interested in R.Rcommands-for those who interested in R.
Rcommands-for those who interested in R.Dr. Volkan OBAN
 
ggplot2 extensions-ggtree.
ggplot2 extensions-ggtree.ggplot2 extensions-ggtree.
ggplot2 extensions-ggtree.Dr. Volkan OBAN
 

More from Dr. Volkan OBAN (20)

k-means Clustering and Custergram with R
k-means Clustering and Custergram with Rk-means Clustering and Custergram with R
k-means Clustering and Custergram with R
 
Data Science and its Relationship to Big Data and Data-Driven Decision Making
Data Science and its Relationship to Big Data and Data-Driven Decision MakingData Science and its Relationship to Big Data and Data-Driven Decision Making
Data Science and its Relationship to Big Data and Data-Driven Decision Making
 
Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.
 
Scikit-learn Cheatsheet-Python
Scikit-learn Cheatsheet-PythonScikit-learn Cheatsheet-Python
Scikit-learn Cheatsheet-Python
 
Python Pandas for Data Science cheatsheet
Python Pandas for Data Science cheatsheet Python Pandas for Data Science cheatsheet
Python Pandas for Data Science cheatsheet
 
Pandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheetPandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheet
 
ReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an exampleReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an example
 
ReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an exampleReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an example
 
R-ggplot2 package Examples
R-ggplot2 package ExamplesR-ggplot2 package Examples
R-ggplot2 package Examples
 
R Machine Learning packages( generally used)
R Machine Learning packages( generally used)R Machine Learning packages( generally used)
R Machine Learning packages( generally used)
 
treemap package in R and examples.
treemap package in R and examples.treemap package in R and examples.
treemap package in R and examples.
 
Mosaic plot in R.
Mosaic plot in R.Mosaic plot in R.
Mosaic plot in R.
 
imager package in R and examples..
imager package in R and examples..imager package in R and examples..
imager package in R and examples..
 
R-Data table Cheat Sheet
R-Data table Cheat SheetR-Data table Cheat Sheet
R-Data table Cheat Sheet
 
Advanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part IIAdvanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part II
 
Advanced Data Visualization in R- Somes Examples.
Advanced Data Visualization in R- Somes Examples.Advanced Data Visualization in R- Somes Examples.
Advanced Data Visualization in R- Somes Examples.
 
Basic Calculus in R.
Basic Calculus in R. Basic Calculus in R.
Basic Calculus in R.
 
Some R Examples[R table and Graphics] -Advanced Data Visualization in R (Some...
Some R Examples[R table and Graphics] -Advanced Data Visualization in R (Some...Some R Examples[R table and Graphics] -Advanced Data Visualization in R (Some...
Some R Examples[R table and Graphics] -Advanced Data Visualization in R (Some...
 
Rcommands-for those who interested in R.
Rcommands-for those who interested in R.Rcommands-for those who interested in R.
Rcommands-for those who interested in R.
 
ggplot2 extensions-ggtree.
ggplot2 extensions-ggtree.ggplot2 extensions-ggtree.
ggplot2 extensions-ggtree.
 

Covid19py Python Package - Example

  • 1. COVID19Py by Konstantinos Kamaropoulos Python package for easy access to up-to-date Coronavirus (COVID-19, SARS-CoV-2) cases data. Installation: pip install COVID19Py Example: import COVID19Py covid19 = COVID19Py.COVID19() covid19 = COVID19Py.COVID19(data_source="csbs") print(covid19.getLatest()) >>Output {'confirmed': 1272115, 'deaths': 69374, 'recovered': 0} ##Turkey covid19.getLocationByCountryCode("TR", timelines=True) >>Output [{'id': 213, 'country': 'Turkey', 'country_code': 'TR', 'country_population': 77804122, 'province': '', 'last_updated': '2020-04-06T23:05:01.184968Z', 'coordinates': {'latitude': '38.9637', 'longitude': '35.2433'}, 'latest': {'confirmed': 27069, 'deaths': 574, 'recovered': 0}, 'timelines': {'confirmed': {'latest': 27069, 'timeline': {'2020-01-22T00:00:00Z': 0, '2020-01-23T00:00:00Z': 0, '2020-01-24T00:00:00Z': 0, '2020-01-25T00:00:00Z': 0, '2020-01-26T00:00:00Z': 0, '2020-01-27T00:00:00Z': 0, '2020-01-28T00:00:00Z': 0, '2020-01-29T00:00:00Z': 0, '2020-01-30T00:00:00Z': 0, '2020-01-31T00:00:00Z': 0, '2020-02-01T00:00:00Z': 0, '2020-02-02T00:00:00Z': 0, '2020-02-03T00:00:00Z': 0,
  • 2. '2020-02-04T00:00:00Z': 0, '2020-02-05T00:00:00Z': 0, '2020-02-06T00:00:00Z': 0, '2020-02-07T00:00:00Z': 0, '2020-02-08T00:00:00Z': 0, '2020-02-09T00:00:00Z': 0, '2020-02-10T00:00:00Z': 0, '2020-02-11T00:00:00Z': 0, '2020-02-12T00:00:00Z': 0, '2020-02-13T00:00:00Z': 0, '2020-02-14T00:00:00Z': 0, '2020-02-15T00:00:00Z': 0, '2020-02-16T00:00:00Z': 0, '2020-02-17T00:00:00Z': 0, '2020-02-18T00:00:00Z': 0, '2020-02-19T00:00:00Z': 0, '2020-02-20T00:00:00Z': 0, '2020-02-21T00:00:00Z': 0, '2020-02-22T00:00:00Z': 0, '2020-02-23T00:00:00Z': 0, '2020-02-24T00:00:00Z': 0, '2020-02-25T00:00:00Z': 0, '2020-02-26T00:00:00Z': 0, '2020-02-27T00:00:00Z': 0, '2020-02-28T00:00:00Z': 0, '2020-02-29T00:00:00Z': 0, '2020-03-01T00:00:00Z': 0, '2020-03-02T00:00:00Z': 0, '2020-03-03T00:00:00Z': 0, '2020-03-04T00:00:00Z': 0, '2020-03-05T00:00:00Z': 0, '2020-03-06T00:00:00Z': 0, '2020-03-07T00:00:00Z': 0, '2020-03-08T00:00:00Z': 0, '2020-03-09T00:00:00Z': 0, '2020-03-10T00:00:00Z': 0, '2020-03-11T00:00:00Z': 1, '2020-03-12T00:00:00Z': 1, '2020-03-13T00:00:00Z': 5, '2020-03-14T00:00:00Z': 5, '2020-03-15T00:00:00Z': 6, '2020-03-16T00:00:00Z': 18, '2020-03-17T00:00:00Z': 47, '2020-03-18T00:00:00Z': 98, '2020-03-19T00:00:00Z': 192, '2020-03-20T00:00:00Z': 359, '2020-03-21T00:00:00Z': 670, '2020-03-22T00:00:00Z': 1236, '2020-03-23T00:00:00Z': 1529, '2020-03-24T00:00:00Z': 1872, '2020-03-25T00:00:00Z': 2433, '2020-03-26T00:00:00Z': 3629, '2020-03-27T00:00:00Z': 5698, '2020-03-28T00:00:00Z': 7402, '2020-03-29T00:00:00Z': 9217, '2020-03-30T00:00:00Z': 10827, '2020-03-31T00:00:00Z': 13531, '2020-04-01T00:00:00Z': 15679,
  • 3. '2020-04-02T00:00:00Z': 18135, '2020-04-03T00:00:00Z': 20921, '2020-04-04T00:00:00Z': 23934, '2020-04-05T00:00:00Z': 27069}}, 'deaths': {'latest': 574, 'timeline': {'2020-01-22T00:00:00Z': 0, '2020-01-23T00:00:00Z': 0, '2020-01-24T00:00:00Z': 0, '2020-01-25T00:00:00Z': 0, '2020-01-26T00:00:00Z': 0, '2020-01-27T00:00:00Z': 0, '2020-01-28T00:00:00Z': 0, '2020-01-29T00:00:00Z': 0, '2020-01-30T00:00:00Z': 0, '2020-01-31T00:00:00Z': 0, '2020-02-01T00:00:00Z': 0, '2020-02-02T00:00:00Z': 0, '2020-02-03T00:00:00Z': 0, '2020-02-04T00:00:00Z': 0, '2020-02-05T00:00:00Z': 0, '2020-02-06T00:00:00Z': 0, '2020-02-07T00:00:00Z': 0, '2020-02-08T00:00:00Z': 0, '2020-02-09T00:00:00Z': 0, '2020-02-10T00:00:00Z': 0, '2020-02-11T00:00:00Z': 0, '2020-02-12T00:00:00Z': 0, '2020-02-13T00:00:00Z': 0, '2020-02-14T00:00:00Z': 0, '2020-02-15T00:00:00Z': 0, '2020-02-16T00:00:00Z': 0, '2020-02-17T00:00:00Z': 0, '2020-02-18T00:00:00Z': 0, '2020-02-19T00:00:00Z': 0, '2020-02-20T00:00:00Z': 0, '2020-02-21T00:00:00Z': 0, '2020-02-22T00:00:00Z': 0, '2020-02-23T00:00:00Z': 0, '2020-02-24T00:00:00Z': 0, '2020-02-25T00:00:00Z': 0, '2020-02-26T00:00:00Z': 0, '2020-02-27T00:00:00Z': 0, '2020-02-28T00:00:00Z': 0, '2020-02-29T00:00:00Z': 0, '2020-03-01T00:00:00Z': 0, '2020-03-02T00:00:00Z': 0, '2020-03-03T00:00:00Z': 0, '2020-03-04T00:00:00Z': 0, '2020-03-05T00:00:00Z': 0, '2020-03-06T00:00:00Z': 0, '2020-03-07T00:00:00Z': 0, '2020-03-08T00:00:00Z': 0, '2020-03-09T00:00:00Z': 0, '2020-03-10T00:00:00Z': 0, '2020-03-11T00:00:00Z': 0, '2020-03-12T00:00:00Z': 0, '2020-03-13T00:00:00Z': 0, '2020-03-14T00:00:00Z': 0,
  • 4. '2020-03-15T00:00:00Z': 0, '2020-03-16T00:00:00Z': 0, '2020-03-17T00:00:00Z': 1, '2020-03-18T00:00:00Z': 1, '2020-03-19T00:00:00Z': 3, '2020-03-20T00:00:00Z': 4, '2020-03-21T00:00:00Z': 9, '2020-03-22T00:00:00Z': 30, '2020-03-23T00:00:00Z': 37, '2020-03-24T00:00:00Z': 44, '2020-03-25T00:00:00Z': 59, '2020-03-26T00:00:00Z': 75, '2020-03-27T00:00:00Z': 92, '2020-03-28T00:00:00Z': 108, '2020-03-29T00:00:00Z': 131, '2020-03-30T00:00:00Z': 168, '2020-03-31T00:00:00Z': 214, '2020-04-01T00:00:00Z': 277, '2020-04-02T00:00:00Z': 356, '2020-04-03T00:00:00Z': 425, data = covid19.getAll(timelines=True) data >>Output: {'latest': {'confirmed': 359991, 'deaths': 10189, 'recovered': 0}, 'locations': [{'id': 0, 'country': 'US', 'country_code': 'US', 'country_population': 310232863, 'province': 'New York', 'county': 'New York', 'last_updated': '2020-04-06T18:53:00Z', 'coordinates': {'latitude': '40.71455', 'longitude': '-74.00714'}, 'latest': {'confirmed': 72181, 'deaths': 3485, 'recovered': 0}}, {'id': 1, 'country': 'US', 'country_code': 'US', 'country_population': 310232863, 'province': 'New York', 'county': 'Nassau', 'last_updated': '2020-04-06T18:53:00Z', 'coordinates': {'latitude': '40.74165225', 'longitude': '-73.5889961 9'}, 'latest': {'confirmed': 15616, 'deaths': 162, 'recovered': 0}}, {'id': 2, 'country': 'US', 'country_code': 'US', 'country_population': 310232863, 'province': 'New York', 'county': 'Westchester', 'last_updated': '2020-04-06T18:53:00Z', 'coordinates': {'latitude': '41.16319759', 'longitude': '-73.7560629 '}, 'latest': {'confirmed': 14294, 'deaths': 197, 'recovered': 0}}, {'id': 3,
  • 5. 'country': 'US', 'country_code': 'US', 'country_population': 310232863, 'province': 'New York', 'county': 'Suffolk', 'last_updated': '2020-04-06T18:53:00Z', 'coordinates': {'latitude': '40.87732808', 'longitude': '-72.8589803 6'}, 'latest': {'confirmed': 14185, 'deaths': 199, 'recovered': 0}}, {'id': 4, 'country': 'US', 'country_code': 'US', 'country_population': 310232863, 'province': 'New York', 'county': 'Rockland', 'last_updated': '2020-04-06T18:53:00Z', 'coordinates': {'latitude': '41.152374', 'longitude': '-74.02401032' }, 'latest': {'confirmed': 5703, 'deaths': 69, 'recovered': 0}}, {'id': 5, 'country': 'US', 'country_code': 'US', 'country_population': 310232863, 'province': 'New York', 'county': 'Orange', 'last_updated': '2020-04-06T18:53:00Z', 'coordinates': {'latitude': '41.40206825', 'longitude': '-74.3055956 7'}, 'latest': {'confirmed': 3397, 'deaths': 53, 'recovered': 0}}, {'id': 6, 'country': 'US', 'country_code': 'US', 'country_population': 310232863, 'province': 'New York', 'county': 'Dutchess', 'last_updated': '2020-04-06T18:53:00Z', 'coordinates': {'latitude': '41.76477515', 'longitude': '-73.7428168 4'}, …………………………….. …… by VOLKAN OBAN