Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
RedditBot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matthew Ma
RedditBot
Commits
3f3b720b
Commit
3f3b720b
authored
Apr 02, 2018
by
Matthew Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added MyBot.py and praw.ini
parent
5db648d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
MyBot.py
MyBot.py
+10
-0
praw.ini
praw.ini
+19
-0
No files found.
MyBot.py
0 → 100644
View file @
3f3b720b
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
"
)
\ No newline at end of file
praw.ini
0 → 100644
View file @
3f3b720b
[DEFAULT]
# A boolean to indicate whether or not to check for package updates.
check_for_updates
=
True
# Object to kind mappings
comment_kind
=
t1
message_kind
=
t4
redditor_kind
=
t2
submission_kind
=
t3
subreddit_kind
=
t5
# The URL prefix for OAuth-related requests.
oauth_url
=
https://oauth.reddit.com
# The URL prefix for regular requests.
reddit_url
=
https://www.reddit.com
# The URL prefix for short URLs.
short_url
=
https://redd.it
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment