pediaextract: Retrieve the extract of Wikipedia article

Description Usage Arguments Value Examples

Description

Retrieve the first section (extract) of Wikipedia articles

Usage

1
pediaextract(wikititles, lang = "en")

Arguments

wikititles

A character string or Charactor vector of Wikipedia article titles

lang

Language of Wikipedia to query, default = 'en'

Value

data.frame of extracts

Examples

1
2
3
4
pediaextract("Hong_Kong")
pediaextract("Hong Kong") # smart enough to replace space with underscore
pediaextract("Hong_Kong", lang="es")
pediaextract(c("R.E.M.", "Nirvana (band)", "Pearl Jam"))

chainsawriot/pediarr documentation built on May 13, 2019, 3:11 p.m.