From a9521508a13cc59e38d7529e7b37cb4b736a2ea5 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Fri, 30 Dec 2022 22:05:08 -0500 Subject: [PATCH] got read working --- app.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app.py diff --git a/app.py b/app.py new file mode 100644 index 0000000..d2956e5 --- /dev/null +++ b/app.py @@ -0,0 +1,10 @@ +import praw + +reddit = praw.Reddit('bot1') +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")