wt_wiki_page_parse: Parse MediaWiki Page

View source: R/wikipages.R

wt_wiki_page_parseR Documentation

Parse MediaWiki Page

Description

Parses common properties from the result of a MediaWiki API page call.

Usage

wt_wiki_page_parse(
  page,
  types = c("langlinks", "iwlinks", "externallinks"),
  tidy = FALSE
)

Arguments

page

(crul::HttpResponse) Result of wt_wiki_page()

types

(character) List of properties to parse.

tidy

(logical). tidy output to data.frames when possible. Default: FALSE

Details

Available properties currently not parsed: title, displaytitle, pageid, revid, redirects, text, categories, links, templates, images, sections, properties, ...

Value

a list

See Also

Other MediaWiki functions: wt_wiki_page(), wt_wiki_url_build(), wt_wiki_url_parse()

Examples

## Not run: 
pg <- wt_wiki_page("https://en.wikipedia.org/wiki/Malus_domestica")
wt_wiki_page_parse(pg)

## End(Not run)

ropenscilabs/wikitaxa documentation built on Jan. 21, 2023, 7:31 p.m.