pediasearch: Search for Wikipedia articles

Description Usage Arguments Value Examples

Description

Retrieve the titles of Wikipedia items based on search string

Usage

1
2
pediasearch(searchstring, lang = "en", extract = FALSE, limit = 20,
  namespace = 0)

Arguments

searchstring

A character string of search string

lang

Language of Wikipedia to query, default = 'en'

extract

Boolean, to retrieve the extracts or not, only available when namespace = 0

limit

integer, number of items to return

namespace

integer, namespace to search for, common namespace: 0 = articles, 14 = categories

Value

vector of wikipedia titles or vector of extracts

Examples

1
2
3
4
5
pediasearch("ukulele")
pediasearch("ukulele", extract = TRUE, limit = 1)
pediasearch("Python")
pediasearch("Python", namespace = 14) # search for categories
pediasearch("Dynamically typed programming languages", namespace = 14, limit = 1)

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