I am new to using praw library for reddit, and I'm using subreddit.search
my code goes something like this
subreddit = reddit.subreddit("REDDITNAME")
for submission in subreddit.search("(sample keyword)", limit=None, time_filter="all"):
....
I want to search for results that has the exact phrase "sample keyword", not just "sample" and "keyword" in the text. How can I do this? Thanks!
To search for the exact phrase "sample keyword" using PRAW, you can enclose the phrase in double quotes within the search query: