Closed FahadAlMutairi5 closed 4 years ago
kindly reminder the bug also today
we are working on the correction, thank you for letting us know
fix #59 including all cities
thanks all , but FYI the deceased key in each city undefined right know
EX. now : مكة المكرمة: { infected: "7410", active: " 5537", recovered: "1778" } but it should like that : مكة المكرمة: { infected: "7410", active: " 5537", recovered: "1778", deceased: "95" }
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(',','');
})
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.
yes you are right, but actual the deceased you can find it if you click on the name of city
after you select the name of city you can find the deceased of this city in الوفيات section
The source of saudi data change the data value but the apify not updated