Created
June 8, 2016 17:41
-
-
Save aphoenix/e25dd192b6066b580fe313c48f71e83a 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 | |
import time | |
from random import choice | |
from collections import Counter | |
from praw.helpers import submissions_between | |
try: | |
import creds | |
except ImportError: | |
print("Must have creds.py with valid reddit login credentials. uid pw") | |
exit() | |
user_agent = "aphoenix's handy dandy script for doing awesome things" | |
thing_limit = 25 | |
r = praw.Reddit(user_agent=user_agent) | |
r.login(creds.uid,creds.pw) | |
xmog = r.get_subreddit('Transmogrification') | |
all_link_flair_css = [] | |
all_link_flair_txt = [] | |
for s in submissions_between(r, 'Transmogrification', 1464021013.00): | |
all_link_flair_css.append(s.link_flair_css_class) | |
all_link_flair_txt.append(s.link_flair_text) | |
print(all_link_flair_css) | |
print(all_link_flair_txt) | |
css_count = Counter(all_link_flair_css) | |
txt_count = Counter(all_link_flair_txt) | |
print(css_count) | |
print(txt_count) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment