search_comments | R Documentation |
Search Pushshift.io for Reddit comments
search_comments( q = "", subreddit = NULL, size = 25, after = NULL, before = NULL, parse_date = TRUE, verbose = TRUE, ... )
q |
character, Query term |
subreddit |
Restrict results to subreddit (use "!" to negate, comma delimited for multiples) |
size |
integer, Number of results to return |
after |
integer, Restrict results to those made after this epoch time |
before |
integer, Restrict results to those made before this epoch time |
parse_date |
logical, should epoch time be converted to date? defaults to TRUE |
verbose |
logical, Whether to display messages |
... |
Further arguments passed as query parameters. See [ps_params] for all possible parameters. |
Use [to_epoch] to convert a date to epoch time
tibble of comments
## Not run: # get the last 100 comments with the word 'cats' search_comments(q = "cats", size = 100) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.