jsheffie / covid_19_data_parser Goto Github PK
View Code? Open in Web Editor NEWA utility to parse the COVID 19 data from Johns Hopkins
License: MIT License
A utility to parse the COVID 19 data from Johns Hopkins
License: MIT License
simular to #4
I might not be interested in this data at the moment.
The daily data changed on 03/21/2020
Figure out of the unified file is:
03/21/2020 - it was
Province/State,Country/Region,Last Update,Confirmed,Deaths,Recovered,Latitude,Longitude
03/22/2020 - it became
FIPS,Admin2,Province_State,Country_Region,Last_Update,Lat,Long_,Confirmed,Deaths,Recovered,Active,Combined_Key
do I modify the package version number in setup.cfg
or setup.py
or both?
I built this with the python cookiecutter
package... now what?
https://www.youtube.com/watch?v=nExL0SgKsDY&t=268s
super simple static ( pros/cons )
more complex: more robust w/REST backend or no? ( pros/cons )
create new repo for this once we make a decision.
Old Interface
filename = "{}/{}.csv".format(daily_data_dir, date_str)
download_url = "{}/{}.csv".format(base_url, date_str)
daily_parser = DailyReportsParser()
daily_parser.set_cachefile(filename)
if not daily_parser.cached_csv():
client = Client()
( res_code, data ) = client.get(download_url)
if res_code == 200:
res = daily_parser.write_csv_file(filename, data)
New Interface
daily_parser = DailyReportsParser()
daily_parser.set_cachefile(filename)
data = daily_parser.get_data(download_url, cached=True)
also modify the parse
method to receive the data ( and not require extra file opening )
old:
daily_parser.parse(date_str, needle_array, filename )
new:
daily_parser.parse(date_str, needle_array, data )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.