I can but there really isn't much to it...
#!/usr/bin/env python
import matplotlib.pyplot as plt from wordcloud import WordCloud import praw
text = ''
def get_reddit_content(text): reddit = praw.Reddit(client_id='blah', client_secret='blah', user_agent='blah')
a = 0
for submission in reddit.subreddit('all').hot(limit=100): print(a) text += submission.title for comment in submission.comments: try: text += comment.body except AttributeError: pass a += 1 return text
text = get_reddit_content(text)
wordcloud = WordCloud().generate(str(text))
wordcloud = WordCloud(max_font_size=40).generate(str(text))
plt.figure() plt.imshow(wordcloud, interpolation="bilinear") plt.axis("off") plt.show()