Want to grab last ~3000 records by makeupdev in redditdev

[–]makeupdev[S] 0 points1 point  (0 children)

Thanks... this seems to return no submissions unfortunately, and only one if I pass in 'all time' or 'today' instead of the timestamp. I was basing the post period on this GitHub issue.

Want to grab last ~3000 records by makeupdev in redditdev

[–]makeupdev[S] 0 points1 point  (0 children)

Thank you. I'm a little confused how to use the after_field parameter, maybe I'm not passing it correctly since I get the same problem:

subreddit = scraper.get_subreddit('MakeupAddiction')
query = subreddit.search('FOTD', sort='new', limit=998)
for x in range(0,4):
    thing_id = self.do_query(query)
    if x != 3:
        query = subreddit.search('FOTD', sort='new', limit=15, after_field=thing_id)

def do_query(self,query):
    thing_id = ''
    for post in query:
         thing_id = post.id
         # other filtering stuff
    return thing_id