Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- subreddit = "discordapp"
- reddit = praw.Reddit(
- client_id="a client id is here but hidden for personal reasons.",
- client_secret="secret is here but hidden for yk",
- password="hidden fake password.",
- user_agent="NuclearModTeam",
- username="NuclearModeratorBot",
- )
- # continued from code above
- for submission in reddit.subreddit("NeighborhoodRobloxia").hot(limit=10):
- print(submission.title)
- # Output: 10 submissions
- # assume you have a praw.Reddit instance bound to variable `reddit`
- subreddit = reddit.subreddit("NeighborhoodRobloxia")
- print(subreddit.display_name)
- # Output: redditdev
- print(subreddit.title)
- # Output: reddit development
- print(subreddit.description)
- # Output: a subreddit for discussion of ...
Advertisement
Comments
-
- oop i was gonna fix it but fell asleep
-
- imagine fixing
Add Comment
Please, Sign In to add comment
Advertisement