R/constants.R

# Base Reddit URL
REDDIT_URL <- "https://www.reddit.com"


# Legal sort parameters when requesting a page by keywords
SORT_KEYWORD_OPTIONS <- c("relevance", "comments", "new", "hot", "top")


# Legal sort parameters when requesting a page without search keywords
SORT_HOMEPAGE_OPTIONS <- c("hot", "new", "top", "rising")


# Legal time bound parameters
PERIOD_OPTIONS <- c("hour", "day", "week", "month", "year", "all")

Try the RedditExtractoR package in your browser

Any scripts or data that you put into this service are public.

RedditExtractoR documentation built on March 31, 2023, 5:18 p.m.