Description Usage Arguments Value Examples
Extract title, URLs, unique identifiers and date of release of press releases from the Department of Health website
1 | get_doh_links(base = "https://www.doh.gov.ph/press-releases", pages = 1:25)
|
base |
Base URL for press releases in the Department of Health website. Default is https://www.doh.gov.ph/press-releases |
pages |
A vector of page numbers corresponding to the page panel containing the press release link. Default is 1:25. Press releases only go up to page 25. Values higher than 25 will error. |
A tibble of 4 columns: 1) absolute URLs of press release; 2) press release title; 3) press release unique identifier; and, 4) date of press release.
1 2 3 4 5 | ## Get press release URLs for first page of press release panel. The base
## argument has been specified using non-SSL version of base URL to prevent
## erroring for those with proxy server connections (i.e., in Travis tests)
get_doh_links(base = "http://www.doh.gov.ph/press-releases",
pages = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.