dmarx / psaw

Python Pushshift.io API Wrapper (for comment/submission search)
BSD 2-Clause "Simplified" License
360 stars 54 forks source link

'aggs' related functions have bugs #87

Open shsh88 opened 3 years ago

shsh88 commented 3 years ago

gen = api.search_comments(author='nasa', aggs="subreddit") a = next(gen) print(a)

Produces empty results

As a result

api.redditor_subreddit_activity('nasa')

Produces an error

sheephunt2000 commented 3 years ago

Seconding this issue!

i-like-the-idea commented 3 years ago

looks like aggs is returning blanks from the api.

for example:

https://api.pushshift.io/reddit/search/comment/?q=trump&after=7d&aggs=created_utc&frequency=hour&size=0

returns:

{
    "data": []
}
sheephunt2000 commented 3 years ago

Found the reason - according to this, this appears to be a problem with pushshift itself disabling the aggs feature, sadly.