Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- import re
- r = praw.Reddit(client_id='CLIENT_ID',
- client_secret='CLIENT_SECRET',
- user_agent='USER_AGENT',
- username='USERNAME',
- password='PASSWORD')
- with open(r'list_of_smut.txt') as f:
- for line in f:
- for sub in line.split(', '):
- try:
- r.subreddit(sub).subscribe()
- except:
- print('failed to subscribe to ', sub)
- print('done')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement