Description Usage Arguments Examples
page_links, when provided with a page title, retrieves internal wikilinks from the current revision of that page.
1 2 3 |
language |
The language code of the project you wish to query, if appropriate. |
project |
The project you wish to query ("wikiquote"), if appropriate.
Should be provided in conjunction with |
domain |
as an alternative to a |
page |
the title of the page you want the links of. |
limit |
the number of links to retrieve. 50 by default; a maximum of 500 is set server-side. |
direction |
the direction to order the links in, by destination page ID: "ascending" or "descending". Set to "ascending" by default. |
namespaces |
The namespaces to filter to. By default, links to any namespace are retrieved: alternately, a numeric vector of accepted namespaces (which are described here) can be provided, and only backlinks from pages within those namespaces will be returned. |
clean_response |
whether to do some basic sanitising of the resulting data structure. Set to FALSE by default. |
... |
further arguments to pass to httr's GET. |
1 2 3 4 5 | #Links
links <- page_links("en","wikipedia", page = "Aaron Halfaker")
#Namespace-specific links
mainspace_links <- page_links("en","wikipedia", page = "Aaron Halfaker", namespaces = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.