GitHub - schochastics/PSAWR: R package to interact with the Pushift.io API (original) (raw)
PSAWR
PSAWR
is a Pushsift.io API Wrapper written in Rfor comment/submission search for Reddit.
Reddit is revoking the API access of pushshift (message,2023-05-02) once this is enforced, the package will probably stop working
Installation
You can install the development version of PSAWR like so:
devtools::install_github("schochastics/PSAWR")
Search comments
Get the last 100 comments mentioning dogs in the subreddit cats.
search_coments(q = "dogs", subreddit = "cats", size = 100)
Search subreddits
Get the last 10 submissions mentioning cats in the subreddit dogs.
search_submissions(q="cats", subreddit = "dogs",size = 10)