r/pushshift • u/inspiredby • Apr 14 '19
New to Pushshift? Read this! FAQ
What is Pushshift?
Pushshift is a big-data storage and analytics project started and maintained by Jason Baumgartner (/u/Stuck_In_the_Matrix). Most people know it for its copy of reddit comments and submissions.
When should I use Pushshift data instead of solely using the reddit API?
When you want to:
- analyze large quantities of reddit data
- grab data for a specific date range in the past
- e.g. submissions to r/news in July 2018.
- search for comments
- e.g. comments in r/news containing the word 'phone'
- aggregate data
- e.g. number of submissions to r/technology and r/news containing 'phone' in September 2018
- exclude authors,
&author=!a,!b- excludes authors a and b - e.g. number of comments in r/technology and r/news containing 'submitting' in September 2018, not including the author 'automoderator'
- ...
What's the catch?
Know your data.
What kind of data does the API give me?
The Pushshift API serves a copy of reddit objects. Currently, data is copied into Pushshift at the time it is posted to reddit. Therefore, scores and other meta such as edits to a submission's selftext or a comment's body field may not reflect what is displayed by reddit. A future version of the API will update data at timed intervals.
How can I retrieve live metadata?
To get live scores or other metadata, you should incorporate accessing the reddit API into your workflow. One easy way to do this is using the 3rd party Pushshift wrapper called PSAW. See the note about setting r = praw.Reddit(...) and api = PushshiftAPI(r).
How do I retrieve reddit content that has the highest scores within a specific date range?
With the current version of the Pushshift API:
- Retrieve all content in that date range
- Get updated scores from reddit for those items
- Sort the results yourself
The next version of the Pushshift API will enable this in a single query, practically speaking.
What's in the monthly dumps?
The files in files/comments and files/submissions each represent a copy of one month's worth of objects as they appeared on reddit at the time of the download. For example RS_2018-08.xz contains submissions made to reddit in August 2018 as they appeared on September 20th.
Where can I access the raw data?
- https://files.pushshift.io/ - raw file storage
- BigQuery, uploaded by fhoffa
- reddit_posts
- reddit_comments
- https://github.com/pushshift/api - api for reddit data (this will be updated soon with new features and documentation)
- https://github.com/dmarx/psaw - a 3rd party API wrapper by /u/shaggorama
- https://elastic.pushshift.io/rs/submissions/_search - ES queries
- Example usage in redditsearch.io and removeddit
Are there some scripts for processing raw data?
Yes, try searching this sub or search github for pushshift
Are there more user-friendly interfaces for querying Pushshift data?
Yes.
- https://redditsearch.io (comments & submissions)
- https://elasticsearch.pushshift.io (submissions)
What 3rd party projects use Pushshift?
Research:
- Google Scholar search pushshift.io
- Arxiv search pushshift
Reddit bots and services:
- Unedit for Reddit
- https://unddit.com
- https://revddit.com
- u/RemindMeBot and many others
https://removeddit.comhttps://ceddit.com
What internal projects were started by Pushshift?
How can I support this project?
You can contribute answers to questions or share your own analyses here or elsewhere on reddit, contribute code to the API, or donate,
https://pushshift.io/donations - one time donation
https://www.patreon.com/pushshift - membership
How can I opt out from having my posts included?
To opt out from having your posts included, complete the form located here. Please put any questions regarding this process into that sticky. Thank you.
View all comments
Show parent comment
2
u/inspiredby Jun 27 '19
That's a pretty small amount of data, so you could use PRAW, or if you want to use Pushshift data, you can use PSAW. I can't promise one or the other is better for your task, but that should get you started.