Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boring-dragon/covid19-dataset-scraper

Covid19 Dataset Scraper that scrapes data from https://covid19.health.gov.mv
https://github.com/boring-dragon/covid19-dataset-scraper

covid19 dataset maldives

Last synced: about 1 month ago
JSON representation

Covid19 Dataset Scraper that scrapes data from https://covid19.health.gov.mv

Awesome Lists containing this project

README

        

# covid19-dataset-scraper

Covid19 Dataset Scraper that scrapes data from https://covid19.health.gov.mv

## Installation

```
composer require jinas/covid19-scraper
```

## Usage

```php
use Jinas\Covid19Scraper\Scraper;

$scraper = new Scraper;

$scraper->GetTableData();

```

It returns an array of all the cases informations. Like so:

```
array(11) {
["case"]=>
string(7) "MAV2899"
["age"]=>
int(0)
["gender"]=>
string(4) "Male"
["nationality"]=>
string(8) "Maldives"
["condition"]=>
string(6) "Stable"
["transmission"]=>
string(16) "Cluster of Cases"
["cluster"]=>
string(0) ""
["confirmed"]=>
string(12) "16 July 2020"
["recovered"]=>
string(0) ""
["discharged"]=>
string(0) ""
["deceased"]=>
string(0) ""
}
```