wiki_catpages: Retrieves a list of category members.
Description
wiki_catpages retrieves a list of pages, subcategories, files or all of the above in a specified category (or series of specified categories)Usage
wiki_catpages(con, categories, properties = c( "title","ids", "sortkey",
"sortkeyprefix", "type", "timestamp"),
type = c("page", "subcat", "file"))
Arguments
con
A connector object, generated by wiki_con
, that corresponds to the project you're trying to query. categories
The names of the categories you want to gather information for.
properties
The properties you want to gather for each member of the category. Options are "title" (the name of the member, including namespace), "id" (the unique numeric identifier of the member), "sortkey" (the hexadecimal key used to sort that member within the ca
type
The type of member you're interested in returning; options are any permutation of "page" (pages), "subcat" (subcategories) and "file" (files).
Warnings
Because of the way MediaWiki stores this data, both "the category you asked for doesn't exist" and "the category you asked for exists, but has no members" return in the same way.See Also
wiki_pagecats
for finding categories that a specified page is a member of.