download_keyword_urls: Download urls by search query

Description Usage Arguments Value Examples

View source: R/download.R

Description

Download urls by search query

Usage

1
2
3
4
5
6
7
download_keyword_urls(
  query,
  sub = "all",
  sort_by = c("top", "hot", "new", "relevance", "comments"),
  limit = NULL,
  time_filter = c("all", "day", "hour", "month", "week", "year")
)

Arguments

query

a search query, for more information building a search query go here: https://www.reddit.com/wiki/search

sub

a subreddit, unless you want to search in all subreddits, in which case the value is "all" (default)

sort_by

Can be one of "top" (default), "relevance", "hot", "new", or "comments".

limit

a number, the API won't give you more than 250 results

time_filter

can be one of: "all" (default), "day", "hour", "month", "week", or "year"

Value

a tibble

Examples

1
2
3
4
## Not run: 
df <- download_keyword_urls(query = "reticulate", sub = "rstats")

## End(Not run)

acastroaraujo/rawrr documentation built on Aug. 25, 2020, 4:16 a.m.