Description Usage Arguments Value Functions Examples
Query data from pushshift.io
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
type |
Type of requested content. Can be |
as.df |
Convert output to |
purge |
Purge deleted posts? Defaults to |
verbose |
Should output be verbose? Defaults to a global option which can be set with |
size |
Maximum number of pieces of content to return. Defaults to the maximum, which is 500, except when using aggs, when it defaults to 0. |
agg_size |
Maximum number of values to return when using aggs; defaults to 500 unless you're not using aggs. |
q |
Query term. |
metadata |
Request metadata from pushshift, which will be used to check whether the query was successful or some of pushshift's shards failed to respond. This is recommended for academic research. |
... |
Other valid parameters. Run |
If as.df=T
, returns a data.frame; else, returns a list.
QueryPushshiftMeta
: Query pushshift's meta endpoint
1 2 3 4 5 6 | #Get u/spez's first ever comment
QueryPushshift(author="spez",after=0,size=1)
#See in which subreddits the word "gamer" is used the most
QueryPushshift(q="Gamer",aggs="subreddit")
QueryPushshiftMeta()$client_user_agent
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.