Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a script "GetCovid19Statistics" #1355

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

abhilipsasahoo03
Copy link

@abhilipsasahoo03 abhilipsasahoo03 commented Mar 26, 2022

Description

Added a script that provides live Covid-19 statistics of a country by using "covid19-stats", an NPM module to retrieve worldometer's live Covid-19 stats, as well as "prompt-sync" to take input. The former module uses web scraping to obtain real time access to world wide statistical information. Using this script, you can provide the country name as input and get a JsonArray containing latest statistics of the desired country (as listed in worldometers) such as: country, totalCases, newCases, totalDeaths and newDeaths.

Fixes #1317

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines(Clean Code) of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have created a helpful and easy to understand README.md
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests/screenshots(if any) that prove my fix is effective or that my feature works

Demo

Screenshot (330)

@ghost
Copy link

ghost commented Mar 26, 2022

CodeSee Review Map:

Review these changes using an interactive CodeSee Map

Review in an interactive map

View more CodeSee Maps

Legend

CodeSee Map Legend

@abhilipsasahoo03
Copy link
Author

Hi @HarshCasper kindly review my PR and let me know if any change is required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[script request]: Retrieve Covid-19 statistics country wise using CLI and covid19-stats npm module
1 participant