Skip to contents

News-release pages live at news_template.php?nrid=<N> and have a different layout than the director's reports – a single headline, short summary paragraph, signed-by-Director line.

Usage

morie_siu_parse_news_html(html, nrid = NA_integer_, source_url = NULL)

Arguments

html

Raw HTML response body.

nrid

Optional integer nrid from the request URL.

source_url

Optional canonical URL.

Value

A list with nrid, source_url_news, news_release_title, news_release_date_iso, news_release_date_raw, news_release_summary, case_number, and directors_name.

Examples

html <- paste0(
  "<html><body>News Release\n",
  "SIU Concludes Investigation Into Downtown Incident\n",
  "Toronto, ON (5 November, 2022) -- The SIU has concluded its ",
  "investigation. Director Joseph Martino said no charges will be laid.\n",
  "Director of the Special Investigations Unit, Joseph Martino",
  "</body></html>")
r <- morie_siu_parse_news_html(html, nrid = 4567L)
r$news_release_title
#> [1] NA