Extract text of press release from the Philippines Department of Health website

get_press_release(base = "https://www.doh.gov.ph", df)

Arguments

base

Base URL for press releases in the Department of Health website. Default is https://www.doh.gov.ph

df

A data.frame created using get_pr_url providing values for relative URL of press release/s, unique identifier of press release and, date of issue of press release.

Value

A tibble containing text of the press release with additional information on line number, type of text, unique identifier and date of press release.

Examples

prURL <- get_pr_url(base = "http://www.doh.gov.ph/press-releases", pages = 1)
#> Warning: 'get_pr_url' is now in the process of deprecation and will #> be unavailable in the next version. Please use 'get_doh_links' #> instead.
get_press_release(base = "http://www.doh.gov.ph", df = prURL[1, ])
#> Warning: 'get_press_release' is now in the process of deprecation and will #> be unavailable in the next version. Please use 'get_doh_release' #> instead.
#> # A tibble: 49 x 6 #> linenumber text source type id date #> <int> <chr> <chr> <chr> <dbl> <date> #> 1 1 DOH TO DEPUTIZE MED GRADS TO ASS… DOH press r… 4158 2020-05-19 #> 2 2 Press Release/18 May 2020 Consis… DOH press r… 4158 2020-05-19 #> 3 3 11469 or the “Bayanihan to Heal … DOH press r… 4158 2020-05-19 #> 4 4 of 1959,” the Department of Heal… DOH press r… 4158 2020-05-19 #> 5 5 2020-0169 last Saturday, which a… DOH press r… 4158 2020-05-19 #> 6 6 practice of medicine as deputize… DOH press r… 4158 2020-05-19 #> 7 7 of registration from the Profess… DOH press r… 4158 2020-05-19 #> 8 8 in the President the power “to e… DOH press r… 4158 2020-05-19 #> 9 9 complement or supplement the cur… DOH press r… 4158 2020-05-19 #> 10 10 R.A. 2382 stipulates “Medical gr… DOH press r… 4158 2020-05-19 #> # … with 39 more rows