get_reddit_posts: Retrieve post data from a subreddit

Description Usage Arguments Value

View source: R/get_posts.R

Description

Uses the OAuth API URL https://oauth.reddit.com/r/subreddit/new.json

Usage

1
2
get_reddit_posts(subreddit, token, agent, username, limit = 100,
  max_pages = 10)

Arguments

subreddit

name of subreddit

token

oauth token obtained using get_reddit_token

agent

name of your reddit api application

username

your reddit username

limit

the number of posts to return per page (100 maximum)

max_pages

the maximum number of pages return

Value

dataframe containing data for posts in the subreddit


PaulC91/redditapi documentation built on Oct. 18, 2020, 5:32 a.m.