Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schochastics/psawr
R package to interact with the Pushift.io API
https://github.com/schochastics/psawr
reddit rstats rstats-package
Last synced: 2 months ago
JSON representation
R package to interact with the Pushift.io API
- Host: GitHub
- URL: https://github.com/schochastics/psawr
- Owner: schochastics
- License: other
- Created: 2022-12-04T18:56:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-01T17:49:32.000Z (over 1 year ago)
- Last Synced: 2023-11-20T10:47:28.558Z (about 1 year ago)
- Topics: reddit, rstats, rstats-package
- Language: R
- Homepage: https://schochastics.github.io/PSAWR/
- Size: 602 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# PSAWR
[![R-CMD-check](https://github.com/schochastics/PSAWR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/schochastics/PSAWR/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/schochastics/PSAWR/branch/main/graph/badge.svg)](https://app.codecov.io/gh/schochastics/PSAWR?branch=main)
[![CRAN status](https://www.r-pkg.org/badges/version/PSAWR)](https://CRAN.R-project.org/package=PSAWR)`PSAWR` is a **P**ush**s**ift.io **A**PI **W**rapper written in **R** for comment/submission search
for Reddit.**Reddit is revoking the API access of pushshift ([message](https://www.reddit.com/r/modnews/comments/134tjpe/reddit_data_api_update_changes_to_pushshift_access/),2023-05-02)
once this is enforced, the package will probably stop working**## Installation
You can install the development version of PSAWR like so:
``` r
devtools::install_github("schochastics/PSAWR")
```## Search comments
Get the last 100 comments mentioning dogs in the subreddit cats.
```r
search_coments(q = "dogs", subreddit = "cats", size = 100)
```## Search subreddits
Get the last 10 submissions mentioning cats in the subreddit dogs.
```r
search_submissions(q="cats", subreddit = "dogs",size = 10)
```