Learn R Programming

WikipediR (version 1.1.0)

wiki_pagecats: Retrieves categories associated with a page.

Description

Retrieves categories associated with a page (or list of pages) on a MediaWiki instance

Usage

wiki_pagecats(con, pages, properties = c("sortkey", "timestamp", "hidden"),
  limit = 50, show_hidden = FALSE)

Arguments

con
A connector object, generated by wiki_con, that corresponds to the project you're trying to query.
pages
A vector of page titles, with or without spaces, that you want to retrieve categories for.
properties
The properties you want to retrieve about the categories. Options are "sortkey" (the key that sorts the way the page is stored in each category), "timestamp" (when the category was added to that page) and "hidden" (tags those categories in the returned li
limit
The maximum number of categories you want to retrieve for each page. Set to 50 by default.
show_hidden
Whether or not to include 'hidden' categories in the categories that are retrieved - these are usually associated with the maintenance of Wikipedia and its internal processes. Set to FALSE by default.

See Also

wiki_catpages for pages in a specified category