apify / covid-19

Open APIs with statistics about Covid-19
46 stars 24 forks source link

Saudi data not actual #43

Closed FahadAlMutairi5 closed 4 years ago

FahadAlMutairi5 commented 4 years ago

The source of saudi data change the data value but the apify not updated

FahadAlMutairi5 commented 4 years ago

kindly reminder the bug also today

Lucie20 commented 4 years ago

we are working on the correction, thank you for letting us know

katacek commented 4 years ago

fix #59 including all cities

FahadAlMutairi5 commented 4 years ago

thanks all , but FYI the deceased key in each city undefined right know

FahadAlMutairi5 commented 4 years ago

EX. now : مكة المكرمة: { infected: "7410", active: " 5537", recovered: "1778" } but it should like that : مكة المكرمة: { infected: "7410", active: " 5537", recovered: "1778", deceased: "95" }

FahadAlMutairi5 commented 4 years ago

I think you need to change this line in main.js citiesArray.forEach(x => { data[x]['infected'] = $(strong:contains(${x})).closest('p').find("span[style='color:#e60000']").eq(0).text().replace(',',''); data[x]['active'] = $(strong:contains(${x})).closest('p').find("span[style='color:#e69800']").eq(0).text().replace(',',''); data[x]['recovered'] = $(strong:contains(${x})).closest('p').find("span[style='color:#70a800']").eq(0).text().replace(',',''); })

katacek commented 4 years ago

Thanks, you are right. It is because I cannot see the deceased key for each city on the website (https://covid19.moh.gov.sa/en/). Before, we took the data from different endpoint (including deceased key) but those data were not actual. If I am wrong and the deceased key can be found on the website, it can be fixed easily.

FahadAlMutairi5 commented 4 years ago

yes you are right, but actual the deceased you can find it if you click on the name of city

**95**

Screen Shot 1441-09-14 at 11 05 52 PM

FahadAlMutairi5 commented 4 years ago

after you select the name of city you can find the deceased of this city in الوفيات section