fields parameter
itang1 opened this issue · 1 comments
itang1 commented
Hi. I'm drawing blank datasets when I try to use the fields
param to filter for specific fields (in order to reduce bandwidth).
This is what I want to do:
comments = api.search_comments(subreddit=subreddit, limit=100, before=before, after=after, sort_type="score", fields="body,score,author,created_utc")
This feature is supposed to be supported by Pushshift (Pushshift: Using the fields parameter). However, when I use the PMAW wrapper to do this, it returns me a blank object.
The PMAW wrapper appears to work fine for filtering exactly one field (e.g. fields="body"
). Is it possible to filter for more fields with this wrapper?
mattpodolak commented
Hi @itang1 pmaw
supports two ways of passing values through the fields
parameter:
- single string field:
fields="body"
- multiple string fields in a list:
fields=["body","score","author","created_utc"]