Giter Club home page Giter Club logo

covid-19-api's People

Contributors

dependabot[bot] avatar laeyoung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

covid-19-api's Issues

Requesting “term of use” or “privacy policy” documents.

Hi @Laeyoung
Bad news is, the Wordpress plugin team has shut my plugin down, they send me a email I quote:

A legal issue with the service you're using was brought to our attention.

https://wordpress.org/plugins/corona-virus-data/

Your plugin uses https://github.com/Laeyoung/COVID-19-API which has no published information regarding the license and terms of use for the service. It has them for the source code, which is great, but as a service they're obligated to protect you (and your users) with at the very least a terms of use or privacy policy.

We cannot reopen your plugin with this issue.

So is there any possible you can include a “term of use” or “privacy policy” in your README?

I promise the plugin will never go commercial and will always be free, I can find the ainiza.ai terms and policy goes here:
https://ainize.ai/terms

And the terms of use of “
Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE” here:

https://github.com/CSSEGISandData/COVID-19/blob/master/README.md

I think you could claim your API respect the MIT license and give users freedom to use in none-commercial use including showing data on their website etc.

Thank you and best regards.

Duke Yin

The timeseries could be improved

You're using dynamic dates for the names of the {confirmed,deaths,recovered} objects in a timeseries array.

The timeseries array should really have objects of type {date, confirmed, deaths, recovered}. To consume this in mobile, you'd have to pre-define all the possible dates and have them nullable or parse the timeseries as a string and split up the values.

Sweep: refactoring index.js

Checklist
  • api/jhu-edu.js ✅ Commit 1e9d63f
• Review the file and identify areas that can be improved or refactored. • Extract common logic into separate functions or modules. • Improve the structure and readability of the code.
Sandbox Execution Logs
trunk init 1/3 ✓
⡿ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
✔ Downloading Trunk 1.16.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done
























✔ 10 linters were enabled (.trunk/trunk.yaml)
  checkov 2.4.9 (1 docker, 7 json, 2 yaml files)
  git-diff-check (16 files)
  hadolint 2.12.0 (1 docker file) (created .hadolint.yaml)
  markdownlint 0.37.0 (1 markdown file) (created .markdownlint.yaml)
  osv-scanner 1.4.0 (1 lockfile file)
  prettier 3.0.3 (3 javascript, 6 json, 1 markdown, 2 yaml files)
  terrascan 1.18.3 (1 docker file)
  trivy 0.45.1 (1 docker, 1 lockfile, 2 yaml files)
  trufflehog 3.56.1 (17 files)
  yamllint 1.32.0 (2 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt api/jhu-edu.js 2/3 ✓
 ✔ Formatted api/jhu-edu.js
Re-checking autofixed files...





Checked 1 file
✔ No issues
trunk check --fix api/jhu-edu.js 3/3 ✓



Checked 1 file
✔ No issues
  • api/korea-kcdc.js ✅ Commit 3e9f448
• Review the file and identify areas that can be improved or refactored. • Extract common logic into separate functions or modules. • Improve the structure and readability of the code.
Sandbox Execution Logs
trunk init 1/3 ✓
⡿ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
✔ Downloading Trunk 1.16.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

























✔ 10 linters were enabled (.trunk/trunk.yaml)
  checkov 2.4.9 (1 docker, 7 json, 2 yaml files)
  git-diff-check (16 files)
  hadolint 2.12.0 (1 docker file) (created .hadolint.yaml)
  markdownlint 0.37.0 (1 markdown file) (created .markdownlint.yaml)
  osv-scanner 1.4.0 (1 lockfile file)
  prettier 3.0.3 (3 javascript, 6 json, 1 markdown, 2 yaml files)
  terrascan 1.18.3 (1 docker file)
  trivy 0.45.1 (1 docker, 1 lockfile, 2 yaml files)
  trufflehog 3.56.1 (17 files)
  yamllint 1.32.0 (2 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt api/korea-kcdc.js 2/3 ✓
 ✔ Formatted api/korea-kcdc.js
Re-checking autofixed files...




Checked 1 file
✔ No issues
trunk check --fix api/korea-kcdc.js 3/3 ✓




Checked 1 file
✔ No issues

Rookie doubt

Does the API have cors? I tried to make a request but got a cors blocking error, I downloaded an extension, but I still have that question. I think a few days ago it did not give me those messages on the console

I made a WordPress plugin using your API

Hi Laeyoung, this is NOT an issue
I am Duke Yin from China,
I made a WordPress plugin with your COVID-19 API (https://github.com/Laeyoung/COVID-19-API),
It called "Corona virus data", shows numbers of Cofirmed, deaths and recovers.

The plugin page:https://wordpress.org/plugins/corona-virus-data/

Thank you for providing this API, if anything inappropriate with this plugin, please let me know, I will try to fix it.

I tried to send you email, but seems your mail box is full, so I open this just to let you know. Good job!

empty city

returns an empty city and take the time to add to the country

API Down

Hello,

I have use the WP plugin but i see a error.

The API server may be down, please check your firewall settings and try again later.

Filter parameter for /latest

Would it be possible to add an filter to the API when querying /latest to get only the data of a specific country?
Something like /latest?iso2=US or /latest?iso3=USA to get only the US-records.

Feature Request: Add ISO code property to country's object

Hi there, thanks for providing such a cool solution.

I'm currently playing around with your API trying to implement map visualization via https://www.react-simple-maps.io/.

The problem I'm facing right now is that I can't match some of the countries.
It would be mad cool if you could add ISO property to the country's object for such cases as well as unification in general.

Best wishes ✌️

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.