Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 881 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 881 Bytes

pushshiftR

This is a very basic R package for fetching Reddit data using the pushshift API. At present, the package should suit general users, but is not a general package.

Installation

devtools::install_github("https://github.com/nathancunn/pushshiftR")

Basic use

To get top-level posts from /r/soccer from January 1st 2019:

getPushshiftData(postType = "comment",
                 size = 1000,
                 after = "1546300800",
                 subreddit = "soccer",
                 nest_level = 1)

Acknowledgments

This package is basically an R implementation of the code here and uses the pushshift API to download Reddit data. If you use this, you might consider donating to them.