Created
July 1, 2018 04:59
-
-
Save timawesomeness/c30935dbaefbbfb3522bb7a3dd19408c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import praw | |
from collections import Counter | |
from pprint import pprint | |
reddit = praw.Reddit(username="", password="", client_id="", client_secret="", user_agent="") | |
flairs = list(reddit.subreddit("teenagers").flair(limit=None)) | |
print("Total flaired users:", len(flairs)) | |
pprint(Counter([_["flair_text"] for _ in flairs])) | |
# pprint(Counter([_["flair_css_class"] for _ in flairs])) # If you want to list by CSS class instead |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment