/covid_API

Api scraping

Primary LanguageGo

API covid19 scraping


Overwiev


API information about Covid-19 current time. All information taken from www.worldometers.info/coronavirus/ and informburo.kz/


Dependencies

fasthttp - http server, but 10x faster than net/http

cli - cli command

colly - lib for scraping websites

fasthttprouter - router

Using

[GET] https://covidapigolang.herokuapp.com/allcases > total cases

[GET] http://covidapigolang.herokuapp.com/country/{countryName} > country information

[GET] http://covidapigolang.herokuapp.com/countries > all countries information

[GET] http://covidapigolang.herokuapp.com/updates/today > updates for current day

[GET] http://covidapigolang.herokuapp.com/updates/all >all updates for week

[GET] http://covidapigolang.herokuapp.com/kz/allcases > cases in Kazakhstan's cities/regions


Installation of project (Ubuntu)

Clone the Project

git clone github.com/gospodinzerkalo/covid_API

Installation (with docker)

docker-compose build
docker-compose up

Install the dependencies (with Makefile)

make depends

Build and Run

make build
make run