Created
August 14, 2012 21:54
-
-
Save tkh44/3353363 to your computer and use it in GitHub Desktop.
gets info from reddit subreddit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import praw | |
from pprint import pprint | |
r = praw.Reddit(user_agent='Reddit Music Bot') | |
submissions = r.get_subreddit('listentothis').get_top(limit=10) | |
for submission in submissions: | |
print '\n%s\n' % submission | |
pprint(vars(submission)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment