dmarx/psaw

Substring search using PSAW or Pushshift API

sumitnitkkr opened this issue · 0 comments

I am trying to search submissions, on Reddit, that contains a substring "enjoying India vs England match" or something like that. If I want submissions that consist of all these or some of these words then I can use the "|" or "&" operator but these operators don't care about the order of words. So my query is "Is there any way to get submissions with the given substring"?`

api = PushshiftAPI(r)

gen = api.search_submissions(q="enjoying India vs England match",limit=30)`