Description Usage Arguments Details Value See Also Examples
Get wiki pages for a specified subreddit.
1 2 3 4 5 6 7 8 |
subreddit |
Name of the subreddit for which wiki pages are requested. |
page |
Name of the requested page. If |
accesstoken |
The access token required to access the endpoint. Scope of
the access token must be |
output |
What the function should return. Choose |
verbose |
A logical flag whether information about the data extraction should be printed to the console. |
retry |
A logical flag whether a failed api request should be retried. Requests will be tried up to three times with varying time intervals between requests. |
More info at https://www.reddit.com/dev/api/ and https://www.reddit.com/wiki/wiki
The text of the wiki page and all revisions as a dataframe, json
object or a list containing both.
If "page"
is "all"
, the names of all wiki pages as a dataframe,
json object or a list containing both.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
wiki_token <- get_token(scope = "wikiread",
useragent = my_useragent,
username = my_username,
password = my_password,
client_id = my_client_id,
client_secret = my_client_secret)
#All wiki pages of a subreddit
soccer_wiki <- get_wiki(subreddit = "soccer",
page = "all",
accesstoken = wiki_token)
#Access a specific wiki page
soccer_wiki_page <- get_wiki(subreddit = "soccer",
page = soccer_wiki[1,1],
accesstoken = wiki_token)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.