pushshift / api

Pushshift API
1.29k stars 109 forks source link

Please add in a subreddit:not="sub" and subcomments=<>num flag for comment search? #41

Open RootInit opened 4 years ago

RootInit commented 4 years ago

I would like to omit specific subreddits from a search but their does not seem to be a way. I.E. omit r/movies from search while including every other subreddit. It would also be nice to be able to filter by the number of sub comments. I.E. show comments with less than 10 replies.

My current solution is to first use beautifulsoup to filter out the specific subreddits from the API result and then curl download the URL for the remaining comments and use beautiful soup to filter out the ones with replies that include a specific string or with too many replies. While the second problem isnt too much of an issue the first is as for my search string a full %80 are from 3 subreddits that I wish to omit.

This means that I need to make an api call for 100 results just to get 20 useful results.