Skip to content

Instantly share code, notes, and snippets.

View profjamal's full-sized avatar

Jamalludin Ab Rahman profjamal

  • International Islamic University Malaysia
  • Kuantan, Malaysia
  • X @arjamal
View GitHub Profile
@wnarifin
wnarifin / covid_19_malaysia_webscraping.md
Last active February 7, 2021 12:58
Scraping data on Covid-19 in Malaysia from DG of Health daily press release

About

I find it tedious to manually update and maintain Excel files of Covid-19 situation in Malaysia. The Director General of Health releases daily press statement in the website, in text format (only some info in Table): https://kpkesihatan.com/

For data analysis, data in structured format is prefered, but this is not readily available from the source. Thus, the data must be updated manually everyday from the website or by listening to the press conference.

In this Gist, I share a method to scrape data from the web page of the daily update in R.

You may also have a look at my scraped data sets and updated scripts at https://github.com/wnarifin/covid-19-malaysia.

Required packages