Giter VIP home page Giter VIP logo

apicovid2019's Introduction

apicovid2019

It is the api created for covid-19 using flask, flask-Restful and scraped the online data provided by Worldometers. The data is updated very early and fast in this site and getting the exact info is at right time without any delay.

Hosting

This project is hosted on two servers maintained separately but having same response. You can call the api on any of these two sites:

This is a support project to the scheduled covid alert script emailing to the emails listed, running on its own at particular time of the day with support of sendgrid.

Anyone searching for early info about covid data can use the site.

Fetch entire data

To get the entire data, you can test:

  • using GET
GET apicovid2019.herokuapp.com

or

GET apicovid2019.azurewebsites.net
  • using curl
curl apicovid2019.herokuapp.com

or

curl apicovid2019.azurewebsites.net

This gives you a json of result containing total world cases, cases by country name and by continent.

Fetch data by specific country

To fetch the specific result according to country name use this: Example:

  • using GET
GET apicovid2019.herokuapp.com/country=Nepal

or

GET apicovid2019.azurewebsites.net/country=Nepal
  • using curl
curl  apicovid2019.herokuapp.com/country=Nepal
curl apicovid2019.azurewebsites.net/country=Nepal

Fetch data by specific continent

To fetch the specific result according to continent name.

Available as:

  • Africa
  • Asia
  • Europe
  • Oceania
  • North America
  • South America

Use this: Example:

  • using GET
GET apicovid2019.herokuapp.com/continent=Asia

or

GET apicovid2019.azurewebsites.net/continent=Asia
  • using curl
curl  apicovid2019.herokuapp.com/continent=Asia

or

curl apicovid2019.azurewebsites.net/continent=Asia

apicovid2019's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

apicovid2019's Issues

Requests sometimes take up to 10 seconds

Maybe because also the main site https://www.worldometers.info/coronavirus/ is slow at this time?
I tested Heroku and Azure version.

So just an idea: Would be nice if you could cache some data, so maybe save every 10min one version of the json on your local server, an when the main site is slow (maybe slower than 3 seconds), use the cached data instead.

Regards,
Josef

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.