Learn R Programming

PSAWR

PSAWR is a Pushsift.io API Wrapper written in R for comment/submission search for Reddit.

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)

Copy Link

Version

Install

install.packages('PSAWR')

Monthly Downloads

167

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Schoch

Last Published

February 28th, 2023

Functions in PSAWR (0.1.0)

search_comments

Search Pushshift.io for Reddit comments
search_submissions

Search Pushshift.io for Reddit submissions
ps_params

Pushshift.io parameters for all endpoints
to_epoch

convert date to epoch time