Commit bf5caf6a authored by Matthew Ma's avatar Matthew Ma

finished part 1

parent 3f3b720b
To install Python 2.7:
To install pip:
-> download
To install praw, use the following command:
pip install praw
\ No newline at end of file
import praw import praw
reddit = praw.Reddit('bot1') reddit = praw.Reddit('bot1')
subreddit = reddit.subreddit("learnpython") subreddit = reddit.subreddit("learnpython")
for submission in for submission in
print("Title: ", submission.title) print("Title: ", submission.title)
print("Text: ", submission.selftext) print("Text: ", submission.selftext)
print("Score: ", submission.score) print("Score: ", submission.score)
print("---------------------------------\n") print("---------------------------------\n")
\ No newline at end of file
...@@ -17,3 +17,10 @@ reddit_url= ...@@ -17,3 +17,10 @@ reddit_url=
# The URL prefix for short URLs. # The URL prefix for short URLs.
short_url= short_url=
user_agent=PyEng Bot 0.1
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment