Advertisement
Unavaliabe

WREDFTSDXFGHRFDSGHFDF

Oct 12th, 2022
322
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. import praw
  2. subreddit = "discordapp"
  3. reddit = praw.Reddit(
  4. client_id="a client id is here but hidden for personal reasons.",
  5. client_secret="secret is here but hidden for yk",
  6. password="hidden fake password.",
  7. user_agent="NuclearModTeam",
  8. username="NuclearModeratorBot",
  9. )
  10. # continued from code above
  11.  
  12. for submission in reddit.subreddit("NeighborhoodRobloxia").hot(limit=10):
  13. print(submission.title)
  14.  
  15. # Output: 10 submissions
  16. # assume you have a praw.Reddit instance bound to variable `reddit`
  17. subreddit = reddit.subreddit("NeighborhoodRobloxia")
  18.  
  19. print(subreddit.display_name)
  20. # Output: redditdev
  21. print(subreddit.title)
  22. # Output: reddit development
  23. print(subreddit.description)
  24. # Output: a subreddit for discussion of ...
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement