in psaw/PushshiftAPI.py [0:0]
def redditor_subreddit_activity(self, author, **kwargs):
"""
:param author: Redditor to be profiled
:type author: str
"""
outv = {}
for k in ('comment', 'submission'):
agg = next(self._search(kind=k, author=author, aggs='subreddit', **kwargs))
outv[k] = Counter({rec['key']:rec['doc_count'] for rec in agg['subreddit']})
return outv