Advertisement
Guest User

Untitled

a guest
Apr 19th, 2017
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. import praw
  2. import config
  3.  
  4.  
  5. print("Logging in...")
  6. r = praw.Reddit(username = config.username,
  7.                 password = config.password,
  8.                 client_id = config.client_id,
  9.                 client_secret = config.client_secret,
  10.                 user_agent = "CSGO news bot")
  11. print("Logged in!")
  12.  
  13.  
  14.  
  15. counter = 1
  16. for link in r.user.get_saved(limit=None):
  17.     print('Saved link #' + str(counter))
  18.     print('Title: '+ link.title.strip())
  19.     print('URL: ' + link.url)
  20.     print('Comments: ' + link.permalink)
  21.     counter += 1
  22.     print(counter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement