parent
a9521508a1
commit
3042873384
@ -1,10 +1,8 @@
|
|||||||
import praw
|
import praw
|
||||||
|
|
||||||
reddit = praw.Reddit('bot1')
|
reddit = praw.Reddit('bot1')
|
||||||
subreddit = reddit.subreddit('learnpython')
|
subreddit = reddit.subreddit('mahuntingtontest')
|
||||||
|
|
||||||
for submission in subreddit.hot(limit=5):
|
for comment in subreddit.stream.comments():
|
||||||
print("Title: ", submission.title)
|
if comment.author != 'jazzbot2pointw000':
|
||||||
print("Text: ", submission.selftext)
|
comment.reply('yeah man')
|
||||||
print("Score: ", submission.score)
|
|
||||||
print("---------------------------------\n")
|
|
||||||
|
|||||||
Loading…
Reference in new issue