Getting more than 100 search results with PRAW?

后端 未结 2 1818
野的像风
野的像风 2021-01-02 19:05

I\'m using the following code to obtain reddit search results with PRAW 4.4.0:

params = {\'sort\':\'new\', \'time_filter\':\'year\'}
return reddit.subreddit(         


        
2条回答
  •  悲&欢浪女
    2021-01-02 19:28

    The functionality that you want is available via the submissions function of a subreddit. You need only provide it with a start and end timestamp:

    http://praw.readthedocs.io/en/latest/code_overview/models/subreddit.html#praw.models.Subreddit.submissions

提交回复
热议问题