You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.3 KiB

#!/usr/bin/env python3.7
from collections import Counter
from pprint import pprint
from time import sleep
import logging
import praw
from common import get_parser, log_in
import logging
logging.basicConfig(format='%(asctime)s - %(name)s - %(message)s', level=logging.INFO)
subreddits = Counter()
if __name__ == "__main__":
args = get_parser()
if args.debug:
handler = logging.StreamHandler()
prawlogger = logging.getLogger('prawcore')
reddit = log_in()
seed = reddit.subreddit(args.seed_subreddit)
also_post_in = list()"Checking where users from /r/{seed} also post...")
for post in getattr(seed, args.subreddit_mode)(limit=args.post_limit):
user = reddit.redditor("Checking where /u/{} posts..")
for comment in
# Looks like isnt a simple attribute
# but is making http calls to
# each time
subreddit_name = str(comment.subreddit)