Skip to content Skip to sidebar Skip to footer

How To Look Through Post In Reddit With Praw

I've been looking at the documentation for praw and i simply cannot find which method is for looking through all the post. What I want to do is look through all the post import Pr

Solution 1:

This is covered in the example on the documentation front page:

>>>import praw>>>r = praw.Reddit(user_agent='my_cool_application')>>>submissions = r.get_subreddit('opensource').get_hot(limit=5)>>>[str(x) for x in submissions]

Aside from get_hot, there are also methods for rising and top posts.

Post a Comment for "How To Look Through Post In Reddit With Praw"