Advertisement
Guest User

Untitled

a guest
May 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. ### Your praw.ini file:
  2. [name_in_prawini]
  3. username = username
  4. password = password
  5. client_id = client_id
  6. client_secret = client_secret
  7. ### end of praw.ini
  8.  
  9. ### authenticate function
  10. def authenticate():
  11. print("Authenticating")
  12. reddit = praw.Reddit('name_in_prawini', user_agent="description")
  13. print(f"Authenticated as {reddit.user.me()}")
  14. return reddit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement