get_doh_links: Extract title, URLs, unique identifiers and date of release...

Description Usage Arguments Value Examples

View source: R/02-get_doh.R

Description

Extract title, URLs, unique identifiers and date of release of press releases from the Department of Health website

Usage

1
get_doh_links(base = "https://www.doh.gov.ph/press-releases", pages = 1:25)

Arguments

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.

Value

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.

Examples

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)

como-ph/comotext documentation built on May 24, 2020, 8:28 p.m.