#!/usr/bin/python
import praw

reddit = praw.Reddit('mob-secondbot')

subreddit = reddit.subreddit("learnpython")

for submission in subreddit.hot(limit=5):
    print("Title: ", submission.title)
    print("Text: ", submission.selftext)
    print("Score: ", submission.score)
    print("---------------------------------\n")

[((4, 9, 4, 37), 'praw.Reddit', 'praw.Reddit', ({(4, 21, 4, 36): '"""mob-secondbot"""'}, {}), "('mob-secondbot')", False, 'import praw\n')]