ma_article: Read Memory Alpha article

View source: R/memory_alpha.R

ma_articleR Documentation

Read Memory Alpha article

Description

Read Memory Alpha article content and metadata.

Usage

ma_article(
  url,
  content_format = c("xml", "character"),
  content_nodes = c("h1", "h2", "h3", "h4", "h5", "h6", "p", "b", "ul"),
  browse = FALSE
)

Arguments

url

character, article URL. Expects package-style short URL. See examples.

content_format

character, the format of the article main text, "xml" or "character".

content_nodes

character, which top-level nodes in the article main text to retain.

browse

logical, also open url in browser.

Details

Article content is returned in a nested, tidy data frame.

Value

a nested data frame

Examples

ma_article("Azetbur")

leonawicz/rtrek documentation built on Sept. 18, 2024, 7:21 a.m.